f******e 发帖数: 582 | 1 I am using ubuntu 9 and gcc. How can I convert a C program, say hello.c, to
assembly language?
Thanks. | t****t 发帖数: 6806 | 2 gcc -S
to
【在 f******e 的大作中提到】 : I am using ubuntu 9 and gcc. How can I convert a C program, say hello.c, to : assembly language? : Thanks.
| M**u 发帖数: 10158 | 3 -S
to
【在 f******e 的大作中提到】 : I am using ubuntu 9 and gcc. How can I convert a C program, say hello.c, to : assembly language? : Thanks.
| f******e 发帖数: 582 | 4 After I use gcc –S to get the assembly output:
1. Is there a good online manual to help understand the output assembly file
, its structure, its syntax?
2. How can I check the details about a specific assembly instruction, for
example “leal”? under ubuntu, we can use “man fork” to check the details
of fork. But is there a similar way to check the assembly instruction?
Thanks a lot. | b******n 发帖数: 592 | 5 why do you want assembly output when you don't even understand it?
If you want to learn assembly, this is not a good way. You can do better wit
h some pdf or online tutourials.
And you need to learn how to use google.
file
details
【在 f******e 的大作中提到】 : After I use gcc –S to get the assembly output: : 1. Is there a good online manual to help understand the output assembly file : , its structure, its syntax? : 2. How can I check the details about a specific assembly instruction, for : example “leal”? under ubuntu, we can use “man fork” to check the details : of fork. But is there a similar way to check the assembly instruction? : Thanks a lot.
| t****t 发帖数: 6806 | 6 gcc outputs at&t syntax by default. you may choose intel syntax by using
option -masm=intel. that is, if you understand i386 assembly with intel
syntax.
the difference is documented in GNU as (the assembler). use "info as" to
read it.
file
details
【在 f******e 的大作中提到】 : After I use gcc –S to get the assembly output: : 1. Is there a good online manual to help understand the output assembly file : , its structure, its syntax? : 2. How can I check the details about a specific assembly instruction, for : example “leal”? under ubuntu, we can use “man fork” to check the details : of fork. But is there a similar way to check the assembly instruction? : Thanks a lot.
|
|