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. |
N****w 发帖数: 21578 | 2 看看 gcc 有没有输出 assembly list file 的选项
to
【在 f******e 的大作中提到】 : I am using ubuntu 9 and gcc. How can I convert a C program, say hello.c, to : assembly language? : Thanks.
|
S*A 发帖数: 7142 | |
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. |
N****w 发帖数: 21578 | 5 get Intel CPU instruction manual, and GCC manul?
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.
|
S*A 发帖数: 7142 | 6 You need to download the intel x86 programming Manuel.
Here:
http://www.intel.com/products/processor/manuals/
It as 3 volumes. Volume 2a & 2b are for each instructions.
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.
|
N****w 发帖数: 21578 | 7 还有 gcc 的 asm 指令名称、寄存器名称跟 intel/ms 习惯不太一样
【在 S*A 的大作中提到】 : You need to download the intel x86 programming Manuel. : Here: : http://www.intel.com/products/processor/manuals/ : It as 3 volumes. Volume 2a & 2b are for each instructions. : : file : details
|
S*A 发帖数: 7142 | 8 那个看 gas doc 应该就可以了。
手写的话可以参考 yasm.
【在 N****w 的大作中提到】 : 还有 gcc 的 asm 指令名称、寄存器名称跟 intel/ms 习惯不太一样
|