From: Dave Gilbert <gilbertd@treblig.org>
To: axp-list@redhat.com
Subject: Re: Writing portable Code for Glibc and 32/64 bit
Date: Sat, 21 Nov 1998 20:40:56 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.3.96.981121203822.925A-100000@tardis.home.dave> (raw)
In-Reply-To: <199811212012.PAA15380@adder.cs.Virginia.EDU>
On Sat, 21 Nov 1998, Greg Lindahl wrote:
That I wrote:
> > A portability problem I have tried to figure out a good soloution for is
> > that of structure sizes in arrays - e.g.
> >
> > struct frob {
> > void *a;
> > void *b;
> > int x;
> > int dummy;
> #ifdef PTRS_ARE_64_BITS
> void *__ignore_me;
> #endif
> > }
Yeh - but what about the size of int's and all the possible alignment
issues in a more general case.
> However, I would first prove to myself that it makes a significant
> difference in the run-time of my program to waste all that memory. And
Sure.
> it's hard to believe that this is worth hacking the compiler chain to
> do this kind of thing for other people.
Oh yeh - I don't think it warrants a compiler chain change; I just want to
know how to write it generically in the source.
Dave
--------------------------------------------------------------------
/ Dr. David Alan Gilbert | Running Linux on Alpha(LX) | Happy \
\ gro.gilbert @ treblig.org | & ARM(EBSA285,old Arc) | In Hex /
\____________________________|___ http://www.treblig.demon.co.uk __/
next prev parent reply other threads:[~1998-11-21 20:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-21 20:12 Writing portable Code for Glibc and 32/64 bit Greg Lindahl
1998-11-21 20:40 ` Dave Gilbert [this message]
1998-11-21 20:47 ` Maciej W. Rozycki
-- strict thread matches above, loose matches on Subject: below --
1998-11-21 20:51 Greg Lindahl
1998-11-20 11:03 y0000218
1998-11-20 15:02 ` Stefan Schroepfer
1998-11-20 18:53 ` Jeff DeMaagd
1998-11-21 13:18 ` Dave Gilbert
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox