This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Gnu assembler question for ARM
> Well, something like this would work:
>
> .struct 0
> $point$x: .int 0
> .balign 4
> $point$y: .int 0
> .balign 4
> $point$z: .int 0
> .balign 4
> $sz$point$: .byte 0
Note that this may not be correct either. Type alignment is determined by the
platform ABI, and not all targets use "natural" alignment for all data types.
eg. m68k uses a maximum of 2-byte alignment, and some ARM targets never use
more than 4-byte alignment.
Paul