From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26859 invoked by alias); 11 Oct 2002 12:13:50 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26828 invoked from network); 11 Oct 2002 12:13:49 -0000 Received: from unknown (HELO anchor-post-35.mail.demon.net) (194.217.242.85) by sources.redhat.com with SMTP; 11 Oct 2002 12:13:49 -0000 Received: from mailgate.softwire.co.uk ([62.49.203.138] helo=polarbear) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 17zyfs-0003QY-0U; Fri, 11 Oct 2002 13:13:48 +0100 From: "Rupert Wood" To: "'Bruno Aulagner'" Cc: Subject: RE: GCC Date: Fri, 11 Oct 2002 05:13:00 -0000 Message-ID: <616BE6A276E3714788D2AC35C40CD18D56178F@whale.softwire.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-reply-to: <616BE6A276E3714788D2AC35C40CD18D86F76D@whale.softwire.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-SW-Source: 2002-10/txt/msg00123.txt.bz2 Bruno Aulagner wrote: > I'm new to Linux and GCC, and I need to compile a code with a 1 byte > structure alignment... I found no options allowing this... > How can I do it ? You can add __attribute__((packed)) to a structure definition http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Variable-Attributes.html I don't think there's a switch to do this globally (or at least I don't see one). Rup.