xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* ATT/GAS syntax manual
@ 2010-07-27 19:55 Mukesh Rathor
  2010-07-27 20:17 ` Keir Fraser
  0 siblings, 1 reply; 3+ messages in thread
From: Mukesh Rathor @ 2010-07-27 19:55 UTC (permalink / raw)
  To: Xen-devel@lists.xensource.com

Hi all,

I should've asked this long ago, but better late than never. 

Has anybody found a site, book, manual, or anything that explains the
ATT/GAS syntax for each instruction. I'm looking for something similar
to the Intel manuals, even tho it's not to that detail. Anything I find
just includes few instructions, and is more assembly language prog book
rather than just GAS syntax manual.

thanks,
Mukesh

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ATT/GAS syntax manual
  2010-07-27 19:55 ATT/GAS syntax manual Mukesh Rathor
@ 2010-07-27 20:17 ` Keir Fraser
  2010-07-28  2:28   ` Mukesh Rathor
  0 siblings, 1 reply; 3+ messages in thread
From: Keir Fraser @ 2010-07-27 20:17 UTC (permalink / raw)
  To: Mukesh Rathor, Xen-devel@lists.xensource.com

On 27/07/2010 20:55, "Mukesh Rathor" <mukesh.rathor@oracle.com> wrote:

> Hi all,
> 
> I should've asked this long ago, but better late than never.
> 
> Has anybody found a site, book, manual, or anything that explains the
> ATT/GAS syntax for each instruction. I'm looking for something similar
> to the Intel manuals, even tho it's not to that detail. Anything I find
> just includes few instructions, and is more assembly language prog book
> rather than just GAS syntax manual.

I don't think there is such a thing. There are general rules for writing
operands, effective addresses, and ordering of operands of course. If I had
a specific issue with a particular instruction then I would construct an
example in machine code using .byte directive in a .S file, gcc/gas it to an
object file, and the objdump -d that file to see the AT&T syntax for the
instruction.

 -- Keir

> thanks,
> Mukesh
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ATT/GAS syntax manual
  2010-07-27 20:17 ` Keir Fraser
@ 2010-07-28  2:28   ` Mukesh Rathor
  0 siblings, 0 replies; 3+ messages in thread
From: Mukesh Rathor @ 2010-07-28  2:28 UTC (permalink / raw)
  To: Keir Fraser; +Cc: Xen-devel@lists.xensource.com

On Tue, 27 Jul 2010 21:17:52 +0100
Keir Fraser <keir.fraser@eu.citrix.com> wrote:

> I don't think there is such a thing. There are general rules for
> writing operands, effective addresses, and ordering of operands of
> course. If I had a specific issue with a particular instruction then
> I would construct an example in machine code using .byte directive in
> a .S file, gcc/gas it to an object file, and the objdump -d that file
> to see the AT&T syntax for the instruction.
> 
>  -- Keir

Ah, I thought so. I have similar tricks, I usually use gdb to toggle 
syntax between AT&T and INTEL, and figure out that way.

thanks,
Mukesh

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-28  2:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-27 19:55 ATT/GAS syntax manual Mukesh Rathor
2010-07-27 20:17 ` Keir Fraser
2010-07-28  2:28   ` Mukesh Rathor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).