[fpc-pascal] nostackframe -- possible to create faulty code?

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Dec 13 15:53:22 CET 2011


On 13 Dec 2011, at 15:42, Bernd wrote:

> Is it thoretically possible to make an otherwise perfectly working
> program crash with access violation only because I used the
> nostackframe modifier on a nested procedure?

Yes. See also http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=15527

I think the "nostackframe" directive should probably only be allowed  
for pure assembler routines. In other cases it can only result in  
buggy code, since there is no way to know what the compiler will do.


Jonas



More information about the fpc-pascal mailing list