Startup problem on ARM
Stefan Hellkvist
d93-sth at nada.kth.se
Thu Nov 25 00:22:18 PST 1999
On Wed, 24 Nov 1999, Godmar Back wrote:
> a) You can check what alignment your tools are configured for by compiling
> and running kaffe/developers/alignment_of_size.c. This must match what
> Kaffe assumes internally.
Thanks for the feedback!
This is what alignment_of_size says:
$ ./alignment_of_size
alignment of Char with size 1 -> 1
alignment of Short with size 2 -> 2
alignment of Int with size 4 -> 4
alignment of Float with size 4 -> 4
alignment of LongLong with size 8 -> 4
alignment of Double with size 8 -> 4
alignment of CharStruct with size 4 -> 4
alignment of ShortStruct with size 4 -> 4
alignment of IntStruct with size 4 -> 4
alignment of FloatStruct with size 4 -> 4
alignment of DoubleStruct with size 8 -> 4
alignment of LongStruct with size 8 -> 4
And the ALIGNMEMENT_OF_SIZE macro in config/arm/common.h says
#define ALIGNMENT_OF_SIZE(S) ((S) < 4 ? (S) : 4)
So if kaffe's internal use of size alignment is based on this macro I
guess they match, right?
/Stefan
More information about the kaffe
mailing list