home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.arch      Apparently more than just beeps & boops      131,241 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 129,537 of 131,241   
   Stefan Monnier to All   
   Re: Register windows   
   29 Aug 25 17:07:03   
   
   From: monnier@iro.umontreal.ca   
      
   > There is one additional, quite thorny issue:  How to maintain   
   > state for nested functions to be invoked via pointers, which   
   > have to have access local variables in the outer scope.   
   > gcc does so by default by making the stack executable, but   
   > that is problematic.  An alternative is to make some sort of   
   > executable heap.  This is now becoming a real problem, see   
   > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117455 .   
      
   AFAIK this is a problem only in those rare languages where a function   
   value is expected to take up the same space as any other pointer while   
   at the same time supporting nested functions.   
      
   In most cases you have either one of the other but not both.  E.g. in   
   C we don't have nested functions, and in Javascript functions are   
   heap-allocated objects.   
      
   Other than GNU C (with its support for nested functions), which other   
   language has this weird combination of features?   
      
      
           Stefan   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca