i86, AT&T syntax, GNU as
From: Axel Schlicht (axel.schlicht_at_mail.isis.de)
Date: 05/22/04
- Next message: Ivan Korotkov: "Re: i86, AT&T syntax, GNU as"
- Previous message: Ivan Korotkov: "Re: How to understand "register volatile *int i asm(r29)"?"
- Next in thread: Ivan Korotkov: "Re: i86, AT&T syntax, GNU as"
- Reply: Ivan Korotkov: "Re: i86, AT&T syntax, GNU as"
- Reply: Matt Taylor: "Re: i86, AT&T syntax, GNU as"
- Reply: Randall Hyde: "Re: i86, AT&T syntax, GNU as"
- Reply: Jonathan Bartlett: "Re: i86, AT&T syntax, GNU as"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 22 May 2004 18:03:29 +0000 (UTC)
Hi folks
can anyone out there help me with two short questions?
I have an assembler listing of an C program
What does
pushl -4(%ebp)
leal -4(%ebp), %eax
incl (%eax)
mean ?
I assume
pushl -4(%ebp) == push double word
leal -4(%ebp), %eax == leal = lea to double word, but whats -4()
incl (%eax) == inc [eax] with eax pointing to a double word
does () represent [] in Intel syntax?
And what does
.section .rodata
...
.text
.globl main
.type main, @function
mean?
.section .rodata read only data ?
...
.text == section .text in Intel syntax
.globl main == global main in Intel syntax
.type main, @function ???
Where can I find a list of all AT&T commands compared to their Intel
counterpart, or rather a list of differences?
e. g., mov %eax, %ebx etc. really is no problem
nor suffixes (b, w, l)
but stuff like -4(%ebp) etc. do look a little strange
Thanks in advance
Axel Schlicht
- Next message: Ivan Korotkov: "Re: i86, AT&T syntax, GNU as"
- Previous message: Ivan Korotkov: "Re: How to understand "register volatile *int i asm(r29)"?"
- Next in thread: Ivan Korotkov: "Re: i86, AT&T syntax, GNU as"
- Reply: Ivan Korotkov: "Re: i86, AT&T syntax, GNU as"
- Reply: Matt Taylor: "Re: i86, AT&T syntax, GNU as"
- Reply: Randall Hyde: "Re: i86, AT&T syntax, GNU as"
- Reply: Jonathan Bartlett: "Re: i86, AT&T syntax, GNU as"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|