help with as , the GNU assembler !

help with as , the GNU assembler !

Post by stelle » Tue, 14 Sep 1999 04:00:00



I just want to know, there must be an online help for as !
I tried to check in man, info but did not find it.

if anyone knows ...

thanks !

 
 
 

help with as , the GNU assembler !

Post by Villy Kru » Thu, 16 Sep 1999 04:00:00




>I just want to know, there must be an online help for as !
>I tried to check in man, info but did not find it.

Try "info as".  If it is installed properly this should give you
the infomation.  Same for "info gcc" and "info libc".  The GNU
people prefer that to the old man page format.

On RH systems these file are located here:

/usr/info/as.info.gz
/usr/info/as.info-1.gz
/usr/info/as.info-2.gz
/usr/info/as.info-3.gz
/usr/info/as.info-4.gz
/usr/info/as.info-5.gz
/usr/info/as.info-6.gz
/usr/info/as.info-7.gz

--
Villy

 
 
 

1. GNU assembler to Solaris assembler

I would like to covert one inline assembly function included in SPARC
Linux to Solaris assembler syntax. The function is written in GNU
assembler syntax.
Two syntax errors are reported due to pseudo operators when I compile
using gcc on Solaris.

inline void spin_lock(unsigned char *lock)
{
  __asm__ __volatile__("
1:  ldstub  [%0], %%g2
  orcc  %%g2, 0x0, %%g0
  bne,a 2f
   ldub [%0], %%g2
  .text 2                         <==
2:  orcc  %%g2, 0x0, %%g0
  bne,a 2b
   ldub [%0], %%g2
  b,a 1b
        .previous                       <==
" :
  : "r" (lock)
  : "g2", "memory", "cc");

/usr/ccs/bin/as: "/var/tmp/cc030Gpt.s", line 18: error: quoted-string operand required
/usr/ccs/bin/as: "/var/tmp/cc030Gpt.s", line 23: error: unknown opcode ".previous"
/usr/ccs/bin/as: "/var/tmp/cc030Gpt.s", line 23: error: statement syntax

How can I convert the function to Solaris assembler syntax? In
particular I cannot find '.previous' pseudo operator in GNU assembler
info manual.
I have confirmed that gcc + GNU assembler can compile this function on
Solaris.

    <--------->    Computational Science Laboratory
                   The Institute of Physics and Chemistry(RIKEN)
    >---------<    Susukita Ryutaro

2. OpenVPN Issue

3. SLIP telnet from a Macintosh to a RS/6000 with 3005

4. HELP - need basic info on GNU assembler

5. Xconfig for Cirrus 6225 wanted

6. HELP: GNU Assembler

7. Does Solaris have parallel sort, like SGI's nsort?

8. GNU assembler 2.5.2.6

9. GNU Assembler

10. GNU Binary Utilities 2.5.1 released: now includes assembler (gas)

11. GNU assembler release now folded into "binary utilities" package

12. GNU assembler