[fpc-devel]Re: Latest status
stefan.ziegenbalg at mailbox.tu-dresden.de
Mon Nov 26 19:17:40 CET 2001
Pierre Muller wrote:
> You will get troubles anyway if address arithmetic is wrong:
> - on linux the stack is often above the 0x80000000,
Yes, it depends on the kernel (settings). (Here stack starts/ends at
> So any error in using signed operation could
> already break small program...
What I mean with "address arithemtic" is this:
var i : longint;
m,l : ^longint;
It's not possible to control how "i*6+5678" is calculated. The compiler
translates this example to:
That means integer multiply. But in this case signed and unsigned
multiply should be the same ("mul reg,mem" does not exist).
So in this example it should be possible to access more then 2GB.
mailto:stefan.ziegenbalg at mailbox.tu-dresden.de
More information about the fpc-devel