From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6661 invoked from network); 21 Nov 1998 20:12:14 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 21 Nov 1998 20:12:14 -0000 Received: from ares.cs.Virginia.EDU (mail.cs.Virginia.EDU [128.143.137.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA01887 for ; Sat, 21 Nov 1998 15:12:13 -0500 Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.18]) by ares.cs.Virginia.EDU (8.8.5/8.8.5) with ESMTP id PAA20009 for ; Sat, 21 Nov 1998 15:12:12 -0500 (EST) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.7.5/8.7.3) id PAA15380 for axp-list@redhat.com; Sat, 21 Nov 1998 15:12:11 -0500 (EST) Date: Sat, 21 Nov 1998 15:12:11 -0500 (EST) Message-Id: <199811212012.PAA15380@adder.cs.Virginia.EDU> X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: axp-list@redhat.com Subject: Re: Writing portable Code for Glibc and 32/64 bit > 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 > } 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 it's hard to believe that this is worth hacking the compiler chain to do this kind of thing for other people. -- g