On Wed, Nov 9, 2011 at 9:39 AM, Don Quixote de la Mancha <quix...@dulcineatech.com> wrote: > .globl _IntNoArgs > .align 2 > .code 16
That should actually be ".align 1". The parameter to .align is the power to which two is raised to yield the alignment. ".code 16" generates Thumb code, which wants 2-byte alignment. > .align 4 > .code 32 That should be ".align 2" to yield 4-byte alignment for 32-bit ARM code. Having a larger alignment than called for doesn't introduce any bugs, but it does waste space in my object code. Before I fixed this, I was seeing mysterious nop instructions whenever I would switch from Thumb to ARM, which the assembler inserted to satisfy the alignment. It really should have generated a warning as well. -- Don Quixote de la Mancha Dulcinea Technologies Corporation Software of Elegance and Beauty http://www.dulcineatech.com quix...@dulcineatech.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com