Article View: gnu.gcc.help
Article #51417gcc aligning structures
From: Stefan Strobel
Date: Mon, 31 May 1993 16:30
Date: Mon, 31 May 1993 16:30
13 lines
1108 bytes
1108 bytes
I have a problem with a structure that consists of onother structure with an odd number of bytes and some other words. The problem is that the structure has to have exactly the size as I specified and Gcc aligns the first structure to 4 bytes, so it grows. How can I tell gcc not to do so and leave the elements at the position ? Is there a compiler switch to do so ? I'm using gcc 2.3.3 on linux Thanks in advance Stefan
Technical Details
Message-ID:
<1udbs2$219@risc1.rz.fh-heilbronn.de>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!xlink.net!math.fu-berlin.de!news.belwue.de!risc1.rz.fh-heilbronn.de!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,ebfe44bd8011a6de,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-05-31 09:17:41 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!xlink.net!math.fu-berlin.de!news.belwue.de!risc1.rz.fh-heilbronn.de!news From: strobel@sun1.rz.fh-heilbronn.de (Stefan Strobel) Newsgroups: gnu.gcc.help Subject: gcc aligning structures Date: 31 May 1993 16:30:58 GMT Organization: Fachhochschule Heilbronn Lines: 16 Distribution: world Message-ID: <1udbs2$219@risc1.rz.fh-heilbronn.de> Reply-To: strobel@sun1.rz.fh-heilbronn.de NNTP-Posting-Host: sun1.rz.fh-heilbronn.de