Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2006 17:07:11 +0000
From:      Nicholas Clark <nick@ccl4.org>
To:        Joseph Koshy <joseph.koshy@gmail.com>
Cc:        arm@freebsd.org, Giorgos Keramidas <keramida@freebsd.org>, current@freebsd.org
Subject:   Re: [head tinderbox] failure on arm/arm
Message-ID:  <20061112170711.GQ6501@plum.flirble.org>
In-Reply-To: <84dead720611120758r4f1cc6e8l8ca4432ba56f3f7f@mail.gmail.com>
References:  <20061112142710.GE91556@wombat.fafoe.narf.at> <20061112133929.9194773068@freebsd-current.sentex.ca> <20061112140010.GA47660@rambler-co.ru> <20061112144230.GC2331@kobe.laptop> <20061112145151.GC49703@rambler-co.ru> <20061112151150.GA2988@kobe.laptop> <84dead720611120758r4f1cc6e8l8ca4432ba56f3f7f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 12, 2006 at 09:28:49PM +0530, Joseph Koshy wrote:

> GCC/arm also thinks that the alignment requirement for
> `char a[1]' is `4', even though `sizeof(char a[1])`
> remains at 1.
> 
> This doesn't make sense at many levels.

But is legal for an ANSI C compiler to do so.
(As I understand it, the reason for the original ARM ABI on other operating
systems choosing to do this alignment was because it was thought that word
alignment even of arrays would generate faster code. I think that they now
realise that actually this is not the case)

I'm not following FreeBSD closely enough to know whether ARM has shipped as
a released supported platform yet, but if not then I believe that FreeBSD
is free to change its ARM ABI to anything that it feels more suitable.

It may be worth talking to the ARM Linux folks to find out what they would
have done differently in the ABI had they known. I suspect that the EABI
described in http://wiki.debian.org/ArmEabiPort is based on previous pain.

Has FreeBSD adopted the wonderful mixed endian IEEE 64 bit representation too?
(Yep, that's legal. But catches a lot of code too)

Nicholas Clark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061112170711.GQ6501>