Gnu-Assembler documentation?

Gnu-Assembler documentation?

Post by Ruediger Goet » Thu, 16 Sep 1999 04:00:00



Hello,

I am looking for syntax (include the opcode)
of the Gnu assembler for PowerPC-CPU's
Unfortunately the docs that came with gas
only include the opcodes for x86, m68 etc.
but not for PPC. Does anyone know where
to find this information?
Thanks in advance
        R"udiger Goetz
--
------------------------------------
R"udiger Goetz

WWW: http://www.r-goetz.de

 
 
 

Gnu-Assembler documentation?

Post by Ludovic Hirliman » Fri, 17 Sep 1999 04:00:00




Quote:> to find this information?

You'll find it in the source ...

--
http://www.multimania.com/softkid
"We are part of the PowerPC family" JLG
This adress is real ....

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

Gnu-Assembler documentation?

Post by Dr. RĂ¼diger Goet » Fri, 17 Sep 1999 04:00:00




> > to find this information?

> You'll find it in the source ...

Does it mean that I have to understand the Gnu-assembler itself
before I can code in PPC-assembler?
And if so, where in the source could I find it.
Iwas looking into the source of binutils 2.9.1
as shipped with LinuxPPC 1999
Though without success.

Bis dann
        R"udiger

--
------------------------------------
Dr. R"udiger Goetz

WWW: http://www.novelscience.com

 
 
 

Gnu-Assembler documentation?

Post by N.P.Ro.. » Fri, 17 Sep 1999 04:00:00





>> > to find this information?

>> You'll find it in the source ...
> Does it mean that I have to understand the Gnu-assembler itself
> before I can code in PPC-assembler?
> And if so, where in the source could I find it.
> Iwas looking into the source of binutils 2.9.1
> as shipped with LinuxPPC 1999
> Though without success.
> Bis dann
>    R"udiger

Maybe buy a book,
but in the meantime you can get to a starters level
by just using 'gcc -S test.c' which will output test.s, the assembly
version of test.c.

Niels

 
 
 

Gnu-Assembler documentation?

Post by Jon Gordo » Sat, 25 Sep 1999 04:00:00


[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]



Quote:> Hello,

> I am looking for syntax (include the opcode)
> of the Gnu assembler for PowerPC-CPU's
> Unfortunately the docs that came with gas
> only include the opcodes for x86, m68 etc.
> but not for PPC. Does anyone know where
> to find this information?

Well, you won't find the assembler syntax, but you will find exhaustive
information about the PowerPC, including opcodes and architecture, on
Motorola's web site.  Presumably, the information is also on IBM's
site, but it was more easily accessible on Motorola's, and I am a
profoundly lazy man.

Be warned, though, that the documentation runs into the hundreds, if
not thousands, of pages.

   -Jon

 
 
 

Gnu-Assembler documentation?

Post by Michael Nyvan » Sun, 26 Sep 1999 04:00:00


[snip]

Quote:> Maybe buy a book,

The PowerPC manuals are available from Motorola's
website.

--
Michael Nyvang,
The Foobar Bazaar, http://home16.inet.tele.dk/mnyvang/

 
 
 

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. QMAGIC / ZMAGIC DLL's?

3. pthread_cond_wait + select question

4. gcc and/or as (as86) assembler documentation

5. KDE2 errors upon exit

6. assembler documentation

7. Pass-through SCSI driver

8. In search for documentation/help on SPARC assembler

9. assembler documentation for x86?

10. Where is the documentation for assembler as86

11. GNU assembler 2.5.2.6

12. GNU Assembler