[fpc-pascal] alloca
    Jonas Maebe 
    jonas at freepascal.org
       
    Sat May 14 17:51:33 CEST 2022
    
    
  
On 14/05/2022 17:31, Marco van de Voort via fpc-pascal wrote:
> Also when an exception happens, the stack pointer is not as expected in 
> exception frames (don't know if that really is an issue, but I can 
> image).  It would be interesting how C handles this (e.g. exceptions 
> while alloca called in a loop?)
This is handled via dwarf call frame information, which is also 
generated by the compiler. It describes how to restore the stack pointer 
for every instruction address where it changes.
Jonas
    
    
More information about the fpc-pascal
mailing list