Help me please!
Where can I find the documentation of GNU assembler( User guide and Reference
guide ) ?
I hope you will be able to help me in this matter.
: Help me please!
: Where can I find the documentation of GNU assembler( User guide and Reference
: guide ) ?
: I hope you will be able to help me in this matter.
For some example code, gcc -S program.c will generate an equivilent assembler
listing. Also, most ditributions contain info on using as in /usr/info or
/usr/share typing "info as" is usually enough. Other wise,
locate as | grep info
should yield the file in question.
I would like to covert one inline assembly function included in SPARC
Linux to Solaris assembler syntax. The function is written in GNU
Two syntax errors are reported due to pseudo operators when I compile
using gcc on Solaris.
inline void spin_lock(unsigned char *lock)
1: ldstub [%0], %%g2
orcc %%g2, 0x0, %%g0
ldub [%0], %%g2
.text 2 <==
2: orcc %%g2, 0x0, %%g0
ldub [%0], %%g2
: "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
I have confirmed that gcc + GNU assembler can compile this function on
<---------> Computational Science Laboratory
The Institute of Physics and Chemistry(RIKEN)
>---------< Susukita Ryutaro
5. 4 IDE drives
12. GNU assembler