[fpc-pascal] 32 to 64 bits

Marco van de Voort marcov at stack.nl
Sat Jan 10 16:19:34 CET 2009


In our previous episode, Jürgen Hestermann said:
> Because of these weak definition of types (which is very confusing IMO) 
> I often use a check in the implementation part of units if I have to 
> reliy on sizes:
> 
> if sizeof(Word)<>2    then Halt(9000);
> if sizeof(DWord)<>4   then Halt(9001);
> if sizeof(LongInt)<>4 then Halt(9002);

> Then I am at least warned in case my presumption are no longer valid.

The only one variable to my knowledge are pointer, integer, ptrint and
ptruint.  Integer with compiler mode, and the others with 32/64bit



More information about the fpc-pascal mailing list