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

Brian Dessent brian@dessent.net
Tue Jun 19 20:18:00 GMT 2007


Matthew Woehlke wrote:

> Incidentally, does the Windows-x64 port* of gcc perpetuate this idiocy?

That's a silly question... Of course it does, it's not gcc's decision to
make.  If gcc were to act in a way that is fundamentally broken from the
platform specification it would be utterly useless as a compiler --
calling any system function or anything else built by the native tools
would have wrong arguments, structs would have different layouts, you'd
get all kinds of random crashes.

> (*...which may not exist, if so s/does/will/)

It's a work in progress.  The gcc and binutils ports are mostly done,
but work remains on porting the runtimes and various support libraries. 
<http://article.gmane.org/gmane.comp.gnu.mingw.user/22697>

Brian



More information about the Gcc-help mailing list