Related articles |
---|
C structure analyzer ("Reflection" in C?) phollingsworth@sbsintl.com (1999-07-19) |
Re: C structure analyzer ("Reflection" in C?) jsgray@acm.org.nospam (Jan Gray) (1999-07-20) |
Re: C structure analyzer ("Reflection" in C?) pmai@acm.org (1999-07-21) |
Re: C structure analyzer ("Reflection" in C?) kst@cts.com (Keith Thompson) (1999-07-23) |
Re: C structure analyzer ("Reflection" in C?) jerry.pendergraft@endocardial.com (Jerry Pendergraft) (1999-07-28) |
Re: C structure analyzer ("Reflection" in C?) norbert@dune.gia.rwth-aachen.de (Norbert Berzen) (1999-07-30) |
Re: C structure analyzer ("Reflection" in C?) kst@cts.com (Keith Thompson) (1999-07-30) |
Re: C structure analyzer ("Reflection" in C?) dibyendu@mazumdar.demon.co.uk (Dibyendu Majumdar) (1999-07-30) |
Re: C structure analyzer ("Reflection" in C?) denne@aps.rwth-aachen.de (Volker Denneberg) (1999-07-30) |
Re: C structure analyzer ("Reflection" in C?) atrn@zeta.org.au (1999-08-01) |
From: | Keith Thompson <kst@cts.com> |
Newsgroups: | comp.compilers |
Date: | 30 Jul 1999 22:21:23 -0400 |
Organization: | CTS Network Services |
References: | 99-07-063 99-07-103 99-07-126 |
Keywords: | C, tools |
Jerry Pendergraft <jerry.pendergraft@endocardial.com> writes:
[...]
> The actual layout of a structure is largely up to the specific compiler,
> for such things as alignment, which in turn is controlled by
>
> #pragma pack n
>
> All of this makes the output you would get VERRRY non portable anyway
> even from one compile run to the next.
Which is why, if you're going to write code that depends on the
generated layout tables, you should regenerate the tables every time
you rebuild the software. Just add it to the Makefile (or
equivalent).
> I would suggens taking another
> look at exactly what you need this information for and see if there is
> not another way than spelunking the source.
Agreed.
--
Keith Thompson (The_Other_Keith) kst@cts.com <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://www.sdsc.edu/~kst>
Return to the
comp.compilers page.
Search the
comp.compilers archives again.