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.
: 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.
jp
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. What is the purpose of root, bin, daemon, lp, ...
4. HELP - need basic info on GNU assembler
5. 4 IDE drives
6. help with as , the GNU assembler !
7. X, desktops, clients and servers
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