This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 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
- From: tom peng <tompeng at microsoft dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 19 Jun 2007 05:39:30 -0700 (PDT)
- Subject: Re: 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
- References: <11184115.post@talk.nabble.com> <C29D332C.22B95%eljay@adobe.com>
Hi Eljay,
It was a typo I made. Sorry about it. The "signed long int" is 8 bytes in
64-bit mode. The GCC compiler works fine.
Tom
John Love-Jensen wrote:
>
> Hi Tom,
>
>> 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
>
> I see the inconsistency but I don't understand why on 64-bit "signed long
> int" is 4 bytes. That is alarming! File a bug!
>
> At least everything else looks good.
>
> Sincerely,
> --Eljay
>
>
>
--
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-tf3942845.html#a11193588
Sent from the gcc - Help mailing list archive at Nabble.com.