Re: [arm-gnu] short int parameter passing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] short int parameter passing
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: Re: [arm-gnu] short int parameter passing
- From: Paul Brook <paul@xxxxxxxxxxxxxxxx>
- Date: Tue, 30 Dec 2008 13:25:20 +0000
On Tuesday 30 December 2008, MikyT wrote:
> Hi,
> I'm using arm-2007q3 (the one distributed with ScratchBox in the
> package: scratchbox-toolchain-cs2007q3-glibc2.5-arm7-1.0.8-6-i386.tar.gz)
> and I've found something strange regarding the alignment of short ints
> during parameter passing.
IHI0042C (AAPCS) Section 5.5, pp 20:
"B.2 If an argument is an integral Fundamental Data Type that is smaller than
a word, then is is zero- or sign- extended to a full word and its size is set
to 4 bytes."
Paul