Re: GCC Struct layout

Jim Wilson <>
19 Apr 2002 22:54:37 -0400

          From comp.compilers

Related articles
GCC Struct layout (Randall Hyde) (2002-04-19)
Re: GCC Struct layout (2002-04-19)
Re: GCC Struct layout (Jim Wilson) (2002-04-19)
| List of all articles for this month |

From: Jim Wilson <>
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.

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.

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


Post a followup to this message

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