由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - C -> Assembly
相关主题
make GCC output ia32 assembly from x86-64?Ideapad converted to Ubuntu 9.10 remix
这个算是Ubuntu 9.04里GCC 4.3.3的bug么?Ubuntu 10.10 太难看了,这些人居然受得了
Ubuntu 10.04 不想要 GIMP。。。!how to step over a line in code with gdb?
lvm设置好以后硬盘可以更换位置吗?32位的linux内核是不是要重新编译以后才能支持3G以上内存?
HP LAPTOP在Ubuntu下的热键问题怎么编程检测网线是否插上了?
Macbook 用 virtualbox 装 UbuntuRe: 有什么比较好的断点续传的 ftp/sftp 软件? (转载)
试了以下ubuntu 16.10,好像问题很多啊怎么搞个简单的虚拟机?
how to convert eps to jpg in ubuntu?偶也文个vi的问题
相关话题的讨论汇总
话题: assembly话题: gcc话题: details话题: ubuntu
进入Linux版参与讨论
1 (共1页)
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
3
gcc -S
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 习惯不太一样
1 (共1页)
进入Linux版参与讨论
相关主题
偶也文个vi的问题HP LAPTOP在Ubuntu下的热键问题
一个有关shell script export variable的问题Macbook 用 virtualbox 装 Ubuntu
对了,关于debugger试了以下ubuntu 16.10,好像问题很多啊
计算软件那个好些?how to convert eps to jpg in ubuntu?
make GCC output ia32 assembly from x86-64?Ideapad converted to Ubuntu 9.10 remix
这个算是Ubuntu 9.04里GCC 4.3.3的bug么?Ubuntu 10.10 太难看了,这些人居然受得了
Ubuntu 10.04 不想要 GIMP。。。!how to step over a line in code with gdb?
lvm设置好以后硬盘可以更换位置吗?32位的linux内核是不是要重新编译以后才能支持3G以上内存?
相关话题的讨论汇总
话题: assembly话题: gcc话题: details话题: ubuntu