linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ia32 instruction sets
@ 2004-01-26 21:46 Frederic Beuserie
  2004-01-27 10:50 ` peter willy krause
  2004-02-03  6:54 ` explaination needed Vadiraj C S
  0 siblings, 2 replies; 6+ messages in thread
From: Frederic Beuserie @ 2004-01-26 21:46 UTC (permalink / raw)
  To: linux-assembly

hi,

i've downloaded the references from intel for ia32/P4 cpus and it appears it's not really easy to use it as a "hand" reference (pdf, ...)

did you know a location where there's a comprensive and easily browseable reference of ia32 instructions, coupled with the syntax i gas use.

thanks.

frederic b.

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

* Re: ia32 instruction sets
  2004-01-26 21:46 ia32 instruction sets Frederic Beuserie
@ 2004-01-27 10:50 ` peter willy krause
  2004-02-03  6:54 ` explaination needed Vadiraj C S
  1 sibling, 0 replies; 6+ messages in thread
From: peter willy krause @ 2004-01-27 10:50 UTC (permalink / raw)
  To: Frederic Beuserie, linux-assembly, linux-assembly

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

afaik, no comprehensive ia32 doc wrt att syntax exists but, some more or 
less incomplete, 'translations'.

the easiest choice, if sufficient, would be the "nasm" documentation, 
which can be generated in almost any commonly used output format.

best,
	hp

Am Montag, 26. Januar 2004 21:46 schrieb Frederic Beuserie:
> hi,
>
> i've downloaded the references from intel for ia32/P4 cpus and it
> appears it's not really easy to use it as a "hand" reference (pdf, ...)
>
> did you know a location where there's a comprensive and easily
> browseable reference of ia32 instructions, coupled with the syntax i
> gas use.
>
> thanks.
>
> frederic b.
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-assembly" in the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

- -- 
mail to 'hp' : lx at lxhp . in-berlin . de
http://www.lxhp.in-berlin.de/index-lx.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAFkKc4A8LYevsFkwRAtsfAKDD6uDUhulBFRgdgaJHoI3nvT2TnQCfTrp+
kvONsTWnpf3uRSTqIMabuTk=
=ph8T
-----END PGP SIGNATURE-----


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

* explaination needed.
  2004-01-26 21:46 ia32 instruction sets Frederic Beuserie
  2004-01-27 10:50 ` peter willy krause
@ 2004-02-03  6:54 ` Vadiraj C S
  2004-02-03  7:52   ` Anticipating a Reply
                     ` (2 more replies)
  1 sibling, 3 replies; 6+ messages in thread
From: Vadiraj C S @ 2004-02-03  6:54 UTC (permalink / raw)
  To: linux-assembly



Hello  Everyone!!

	I was just looking at the asm code generated by gcc. I could not get some of the stuffs, here, I'm familiar with
nasm assembler syntax, but this does not seem to be nasm syntax. 

 the code is for the following c program
int main()
{
	char *c ="1"
	c[0]= "2" ;
}


asm code for the above..

  .file   "temp.c"
        .section        .rodata
.LC0:
        .string "1"
        .text
        .align 2
.globl main
        .type   main,@function
main:
        pushl   %ebp
        movl    %esp, %ebp
        subl    $8, %esp
        andl    $-16, %esp
        movl    $0, %eax
        subl    %eax, %esp
        movl    $.LC0, -4(%ebp)
        movl    -4(%ebp), %eax
        movb    $50, (%eax)
        leave
        ret
.Lfe1:
        .size   main,.Lfe1-main
        .ident  "GCC: (GNU) 3.2"

  what syntax is this, and what does $ represent. does the .rodata mean readonly data?

 Thanks in advance..

-- 
	Regards
	Vadiraj C S


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

* Re: explaination needed.
  2004-02-03  6:54 ` explaination needed Vadiraj C S
@ 2004-02-03  7:52   ` Anticipating a Reply
  2004-02-03 17:00   ` peter willy krause
  2004-02-04  9:47   ` dEAthBloW-wnCia
  2 siblings, 0 replies; 6+ messages in thread
From: Anticipating a Reply @ 2004-02-03  7:52 UTC (permalink / raw)
  To: Vadiraj C S, linux-assembly

Hi !

  On Linux , the gcc compiler produces intermediate 
assembly code in  the AT&T syntax fromat .

$ refers to the immediate value . 

Google to find more about AT&T syntax .

Cheers !

 --- Vadiraj C S <vadiraj@odysseytec.com> wrote: > 
> 
> Hello  Everyone!!
> 
> 	I was just looking at the asm code generated by
> gcc. I could not get some of the stuffs, here, I'm
> familiar with
> nasm assembler syntax, but this does not seem to be
> nasm syntax. 
> 
>  the code is for the following c program
> int main()
> {
> 	char *c ="1"
> 	c[0]= "2" ;
> }
> 
> 
> asm code for the above..
> 
>   .file   "temp.c"
>         .section        .rodata
> .LC0:
>         .string "1"
>         .text
>         .align 2
> .globl main
>         .type   main,@function
> main:
>         pushl   %ebp
>         movl    %esp, %ebp
>         subl    $8, %esp
>         andl    $-16, %esp
>         movl    $0, %eax
>         subl    %eax, %esp
>         movl    $.LC0, -4(%ebp)
>         movl    -4(%ebp), %eax
>         movb    $50, (%eax)
>         leave
>         ret
> .Lfe1:
>         .size   main,.Lfe1-main
>         .ident  "GCC: (GNU) 3.2"
> 
>   what syntax is this, and what does $ represent.
> does the .rodata mean readonly data?
> 
>  Thanks in advance..
> 
> -- 
> 	Regards
> 	Vadiraj C S
> 
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-assembly" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
http://vger.kernel.org/majordomo-info.html 

________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com

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

* Re: explaination needed.
  2004-02-03  6:54 ` explaination needed Vadiraj C S
  2004-02-03  7:52   ` Anticipating a Reply
@ 2004-02-03 17:00   ` peter willy krause
  2004-02-04  9:47   ` dEAthBloW-wnCia
  2 siblings, 0 replies; 6+ messages in thread
From: peter willy krause @ 2004-02-03 17:00 UTC (permalink / raw)
  To: Vadiraj C S, linux-assembly, linux-assembly


extract from the as manual:
	http://www.lxhp.in-berlin.de/lhpas86.html
other refs via
	http://www.lxhp.in-berlin.de/lhplinks.html

best,
	hp

Am Dienstag, 3. Februar 2004 06:54 schrieb Vadiraj C S:
> Hello  Everyone!!
>
> 	I was just looking at the asm code generated by gcc. I could not get
> some of the stuffs, here, I'm familiar with nasm assembler syntax, but
> this does not seem to be nasm syntax.
>
>  the code is for the following c program
> int main()
> {
> 	char *c ="1"
> 	c[0]= "2" ;
> }
>
>
> asm code for the above..
>
>   .file   "temp.c"
>         .section        .rodata
> .LC0:
>         .string "1"
>         .text
>         .align 2
> .globl main
>         .type   main,@function
> main:
>         pushl   %ebp
>         movl    %esp, %ebp
>         subl    $8, %esp
>         andl    $-16, %esp
>         movl    $0, %eax
>         subl    %eax, %esp
>         movl    $.LC0, -4(%ebp)
>         movl    -4(%ebp), %eax
>         movb    $50, (%eax)
>         leave
>         ret
> .Lfe1:
>         .size   main,.Lfe1-main
>         .ident  "GCC: (GNU) 3.2"
>
>   what syntax is this, and what does $ represent. does the .rodata mean
> readonly data?
>
>  Thanks in advance..

-- 
mail to 'hp': lx at lxhp : in-berlin : de


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

* Re: explaination needed.
  2004-02-03  6:54 ` explaination needed Vadiraj C S
  2004-02-03  7:52   ` Anticipating a Reply
  2004-02-03 17:00   ` peter willy krause
@ 2004-02-04  9:47   ` dEAthBloW-wnCia
  2 siblings, 0 replies; 6+ messages in thread
From: dEAthBloW-wnCia @ 2004-02-04  9:47 UTC (permalink / raw)
  To: Vadiraj C S; +Cc: linux-assembly


hi vadiraj,
you're right, its not nasm syntax.....its gas (GNU assembler) syntax....


On Tue, 3 Feb 2004, Vadiraj C S wrote:

> 
> 
> Hello  Everyone!!
> 
> 	I was just looking at the asm code generated by gcc. I could not get some of the stuffs, here, I'm familiar with
> nasm assembler syntax, but this does not seem to be nasm syntax. 
> 
>  the code is for the following c program
> int main()
> {
> 	char *c ="1"
> 	c[0]= "2" ;
> }
> 
> 
> asm code for the above..
> 
>   .file   "temp.c"
>         .section        .rodata
> .LC0:
>         .string "1"
>         .text
>         .align 2
> .globl main
>         .type   main,@function
> main:
>         pushl   %ebp
>         movl    %esp, %ebp
>         subl    $8, %esp
>         andl    $-16, %esp
>         movl    $0, %eax
>         subl    %eax, %esp
>         movl    $.LC0, -4(%ebp)
>         movl    -4(%ebp), %eax
>         movb    $50, (%eax)
>         leave
>         ret
> .Lfe1:
>         .size   main,.Lfe1-main
>         .ident  "GCC: (GNU) 3.2"
> 
>   what syntax is this, and what does $ represent. does the .rodata mean readonly data?
> 
>  Thanks in advance..
> 
> 

-- 
R.Karthik,
200330022,
B.Tech,E.C.E.,
IIIT,HYD.

-------------------When Nature Calls......I Answer!!!----------------


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

end of thread, other threads:[~2004-02-04  9:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26 21:46 ia32 instruction sets Frederic Beuserie
2004-01-27 10:50 ` peter willy krause
2004-02-03  6:54 ` explaination needed Vadiraj C S
2004-02-03  7:52   ` Anticipating a Reply
2004-02-03 17:00   ` peter willy krause
2004-02-04  9:47   ` dEAthBloW-wnCia

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).