
13 Jun
2004
13 Jun
'04
9:27 a.m.
Ian Lynagh
Just had a look on mips (one of the arches where it currently matters for me) and both 3.2 and 3.3 are generating ".align 2" rather than ".align 4". As far as I know this hasn't caused a problem in the past. Have I just been lucky or is this also fine? Or is it something that should be fixed?
I imagine that, since 'startLabel' is always the first symbol to be defined in any object file, it will naturally get a 4-byte alignment anyway thanks to the linker, regardless of whether the compiler places an ".align 2" or ".align 4" in front of it. But yes, technically it should probably be .align 4. Regards, Malcolm