From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21161 invoked by alias); 26 Oct 2005 06:31:02 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 21143 invoked by uid 22791); 26 Oct 2005 06:30:59 -0000 Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.126.187) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 26 Oct 2005 06:30:59 +0000 Received: from 81.167.jetz.ddkom.net [82.119.167.81] (helo=intranator.net.lan) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKxQS-1EUeoJ1iV1-00042F; Wed, 26 Oct 2005 08:30:55 +0200 Received: from localhost (intranator.net.lan [127.0.0.1]) by localhost (Postfix) with ESMTP id CAF6311D; Wed, 26 Oct 2005 08:30:54 +0200 (CEST) Received: from [192.168.101.150] (uwelaptop2.net.lan [192.168.101.150]) by intranator.net.lan (Postfix) with ESMTP id 22F2B111; Wed, 26 Oct 2005 08:30:54 +0200 (CEST) Message-ID: <435F2299.2020808@cetoni.de> Date: Wed, 26 Oct 2005 06:31:00 -0000 From: Uwe Kindler User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) MIME-Version: 1.0 To: ecos-discuss@sourceware.org Cc: embeddedeng@hotmail.com Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: [ECOS] RE: Byte array address alignment X-SW-Source: 2005-10/txt/msg00210.txt.bz2 Hello, not all compilers align byte arrays to a 4 byte boundary on a 32 bit machine or to a 2 byte boundary on a 16 bit machine. Even the GNU comiler does not follow these alignment rules for all machines. For example the h8300-elf toolchain does not align byte arrays and this is a big problem for eCos development because the eCos source code contains a number of byte arrays (i.e. the idle thread stack) that are expected to be aligned. In my opinion, if a certain alignment of arrays is required it should be explicit declared by using another data type (i.e. short or long). Regards, Uwe -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss