[cfe-dev] GNU assembler syntax for strlen

Joerg Sonnenberger joerg at britannica.bec.de
Tue Oct 16 12:23:16 PDT 2012


On Tue, Oct 16, 2012 at 02:14:12PM -0400, Andrew Pennebaker wrote:
> > msg: .asciz "Hello, world!\n"
> > .set len, . - msg
> >
> > foo:
> >         push $len
> >
> 
> That's odd, on my system this syntax fails to link.

It's just the relevant fragment. Tested on ELF, not sure about OSX.

Joerg



More information about the cfe-dev mailing list