[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hpux asm vs GNU as

On Fri, Oct 08, 2004 at 04:56:51PM -0700, Randolph Chung wrote:
> usually, you need to:
> - remove all the .subspa directives, possibly replacing with .text and
>   .data in some places

done using gcc -S as a template.

> - in GNU asm all the registers need to be %rX, just using rX doesn't
>   work

It was already the case.

> - be careful about .level 1.1 vs .level 2.0
> there are a few other things gas doesn't like, but usually it's fairly
> straightforward. i've found that gas doesn't understand some of the
> cache hint specifiers, and it's not very good about distinguishing
> between pa2.0n and pa2.0w.....
> if you have specific bits that you have trouble with, post it on the
> list and i can try to help.


Apparenlty GNU as do not like the addil line below:

        addil   lt'overflow,%r19,%r1
        add     %arg0,%arg1,%ret0
        ldw     rt'overflow(%r1),%r20
        addc    0,0,%r22
        stw     %r22,0(%r20)

Look like it expext only 2 arguments and get three...

Bill. <ballombe@debian.org>

Imagine a large red swirl here. 

Reply to: