[fpc-pascal] Translate C code

Ryan Joseph ryan at thealchemistguild.com
Sat Jan 6 11:52:52 CET 2018



> On Jan 6, 2018, at 5:25 PM, Karoly Balogh (Charlie/SGR) <charlie at scenergy.dfmk.hu> wrote:
> 
> So it doesn't crash, because it never loads from this "invalid" address it
> calculates.

Are we talking about the address on the stack at compile time? If no memory was ever allocated (which I thought nil suggested) then I don’t see where it’s getting an address of anything.

For anyone interested can you recode that function to more Pascal? It feels like we’re going needlessly low level when another method would make more sense.

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list