[fpc-devel] Component FTag and Tag should be int64

Andrew Brunner andrew.t.brunner at gmail.com
Tue Nov 23 17:20:42 CET 2010


On Nov 23, 2010, at 8:43 AM, Hans-Peter Diettrich <DrDiettrich1 at aol.com> 
> Components consume much space already, so what's the percentage that a 64 bit type would add to every component, and to the app? And when the Tag type/sice depends on the target, nothing will change unless for 64 bit targets.

No. The sizeof(int64) is the same on all platforms/CPUs. Which is 8 bytes. 64bits*1byte/8bits.  What data you fill that 8 bytes with is of no concern to the compiler.  I is just bad practice to use it as anything other than whole numbers. QWord for unsigned.  Int64 for signed.  


More information about the fpc-devel mailing list