[fpc-pascal] alloca

Jonas Maebe jonas at freepascal.org
Sat May 14 11:04:47 CEST 2022


On 2022-05-14 10:52, Hairy Pixels via fpc-pascal wrote:
>> On May 14, 2022, at 1:01 PM, Jonas Maebe via fpc-pascal 
>> <fpc-pascal at lists.freepascal.org> wrote:
>> 
>> It *requires* compiler support for...
> 
> The RTL has get_frame but that just tells you the start of the frame
> right? If you had the stack pointer address you could advance that
> pointer x bytes and get a new location in the stack?

No, because most modern OSes don't allow you to address memory below the 
stack pointer (and for the ones that do to a limited extent, the 
compiler could be using that memory already).


Jonas


More information about the fpc-pascal mailing list