[fpc-devel] Declare variables inside the code

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed May 11 12:45:07 CEST 2011

Joerg Schuelke schrieb:

> To decide that a declaration is a statement and can occur everywhere
> where a statement is required, is not that small you think. This has
> many consequences, influencing the whole code generation process.
> Think about exceptions and stack rewinding.

Right, but a compiler can allocate local variables as appropriate. E.g. 
managed variables can go into the main variable block, while unmanaged 
variables can be overlaid.

> Think about efficiency of code generating, for many developers a reason
> for developing in pascal.

Think of JIT compilers, that generate code on the fly, in no noticeable 


More information about the fpc-devel mailing list