English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
arm backend
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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

"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...


Nathan Gray