Browse thread
arm backend
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2009-05-01 (18:27) |
From: | Nathaniel Gray <n8gray@g...> |
Subject: | Re: [Caml-list] Re: arm backend |
On Fri, May 1, 2009 at 5:02 AM, Mattias Engdegård <mattias@virtutech.se> wrote: >>[2] I had to change all '.global' to '.globl' in arm.s and >>arm/emit.mlp.  I have no idea what that signifies. > > Only that Apple's assembler only understands .globl. Gas (the assembler > in GNU binutils) should accept both .global and .globl, so it is probably > safe to use the latter only. There is no difference in semantics. Ah, mystery solved. Thanks! > Another pseudo-op that sometimes causes problems is .align whose exact > behaviour with respect to its argument varies between platforms. > Both gas and Apple's as accept .p2align, so this is usually a safer > choice. It's all very confusing to me because I thought Apple's assembler *was* gas. In the man page for as it's described as "Mac OS X Mach-O GNU-based assemblers". The -v flag for the iPhone version of as gives: "Apple Computer, Inc. version cctools-667.10.0~186, GNU assembler version 1.38" Very odd that they decided to take out support for .global in their version... Cheers, -n8 -- Nathan Gray http://www.n8gray.org/