[fpc-pascal] Platform Dependent Integer Types
African Wild Dog
paintedlycaon at gmail.com
Fri Apr 7 16:54:14 CEST 2017
2017-04-07 11:15 GMT-03:00 Marco van de Voort <marcov at stack.nl>:
> In our previous episode, African Wild Dog said:
> > Which integer types have their size dependent on platform?
> > E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform.
>
> In Delphi they retroactively equated longint to C long, being 32-bit on
> 64-bits windows and 64-bit on Linux. The Delphi Linux compiler is btw a
> different compiler than windows.
>
> On FPC it is always 32-bit. Ptrint and ptruint scale with pointer size, and
> integer depends on compilation mode, 16 or 32-bit.
>
>
So, is the size of "Integer" type dependent on the compilation mode?
(Delphi is always 32 bits)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170407/1a012244/attachment.html>
More information about the fpc-pascal
mailing list