From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7657 invoked by alias); 9 Jan 2008 14:56:54 -0000 Received: (qmail 7646 invoked by uid 22791); 9 Jan 2008 14:56:54 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.237) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 Jan 2008 14:56:27 +0000 Received: by nz-out-0506.google.com with SMTP id f1so104376nzc.21 for ; Wed, 09 Jan 2008 06:56:25 -0800 (PST) Received: by 10.115.48.12 with SMTP id a12mr905239wak.105.1199890584906; Wed, 09 Jan 2008 06:56:24 -0800 (PST) Received: by 10.115.109.11 with HTTP; Wed, 9 Jan 2008 06:56:24 -0800 (PST) Message-ID: Date: Wed, 09 Jan 2008 14:56:00 -0000 From: Alexandre Reply-To: thekyz@gmail.com To: "=?ISO-8859-1?Q?Bernard_Fouch=E9?=" Cc: ecos-discuss In-Reply-To: <4784DF5F.8000903@kuantic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4784DF5F.8000903@kuantic.com> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] pragma pack X-SW-Source: 2008-01/txt/msg00029.txt.bz2 Thanks a lot to all of you, I'm gonna try what you wrote to see if it works Olaf, but what Andrew told me resolved the problem. My structure is now defined like this: typedef struct __attribute__ ((__packed__)) s_pelco_pattern_array{ cyg_uint8 command2_byte; cyg_uint8 data3; cyg_uint8 data4; cyg_uint16 timestamp; } pelco_pattern_array; and is actually 5 bytes large :) I was reffering to this page of the gcc doc for the "pack" pragma and thought it would work, maybe what Bernard pointed should also help resolve the problem about the pragma: http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html Again, thanks a lot, i'm still gonna push a little my research on this matter and i'll get you all updated. Alex Garcia Hymatom SA PS: Sorry for the double mail Bernard :( -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss