public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Size of C/C++ data type from GNU GCC/g++ compiled ELF 64-bit LSB executable, AMD x86-64 vs. ELF 32-bit LSB executable, Intel 80386
@ 2007-06-18 20:46 tom peng
0 siblings, 0 replies; only message in thread
From: tom peng @ 2007-06-18 20:46 UTC (permalink / raw)
To: gcc-bugs
Hi,
I need experts to shed light on C/C++ data type size inconsistencies when
running 64-bit and 32-bit ELF executables compiled by GNU/GCC g++/gcc
Following are results of C/C++ data type size from code " cout << "data
type" << sizeof(data type) << endl " :
| 32-bit | 64-bit
-------------------------------
int | 4 | 4
-------------------------------
long int | 4 | 8
-------------------------------
signed long int | 4 | 4
-------------------------------
ulong | 4 | 8 (sys/types.h)
-------------------------------
long double | 12 | 16
Thank in advance,
Tom
--
View this message in context: http://www.nabble.com/Size-of-C-C%2B%2B-data-type-from-GNU-GCC-g%2B%2B-compiled-ELF-64-bit-LSB-executable%2C-AMD-x86-64-vs.-ELF-32-bit-LSB-executable%2C-Intel-80386-tf3942710.html#a11183699
Sent from the gcc - bugs mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-18 20:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-18 20:46 Size of C/C++ data type from GNU GCC/g++ compiled ELF 64-bit LSB executable, AMD x86-64 vs. ELF 32-bit LSB executable, Intel 80386 tom peng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).