Paul Brook wrote:
My (embedded) development system is gcc-3.2.1 arm-elf. I don't really
understand its value for sizeof(struct { short x }).

sizeof s_sh 4
sizeof short 2

This is a feature of the ARM ABI you are using. All structures are word aligned (which implies being word sized).

Paul

If I declare the struct 'packed', then it is size 2. That is enough for my purposes. I hope that won't greatly change through versions...

Rutger

Reply via email to