Gnu assembler question for ARM

Paul Brook paul@codesourcery.com
Mon May 7 16:17:00 GMT 2007


>   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



More information about the Binutils mailing list