Re: GCC Struct layout

Jim Wilson <wilson@redhat.com>
19 Apr 2002 22:54:37 -0400

          From comp.compilers

Related articles
GCC Struct layout rhyde@cs.ucr.edu (Randall Hyde) (2002-04-19)
Re: GCC Struct layout loewis@informatik.hu-berlin.de (2002-04-19)
Re: GCC Struct layout wilson@redhat.com (Jim Wilson) (2002-04-19)
| List of all articles for this month |
From: Jim Wilson <wilson@redhat.com>
Newsgroups: comp.compilers
Date: 19 Apr 2002 22:54:37 -0400
Organization: Red Hat Inc.
References: 02-04-115
Keywords: C, GCC, architecture
Posted-Date: 19 Apr 2002 22:54:37 EDT

Structure layout is very target dependent. It isn't practical for GCC
to document this, as there are so many different variations for so
many targets. GCC does however follow established practice, so if
there is documentation available for your target, then look for
structure layout info there.


If the target is x86-linux, then try looking at the SVR4 x86 psABI.
http://www.caldera.com/developers/devspecs/


Ultimately, this information should be in the Linux Standards Base,
but this document isn't complete yet. It does have a useful list of
related documents though, including a pointer to the above link.
http://www.linuxbase.org/spec/archLSB/IA32/spec/book1.html


Other x86 targets may use different structure layout conventions. See
the appropriate documentation for your target.


Jim


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.