由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - C -> assembly
相关主题
请教一道练习题(C,OS)Big # of files output problem in C
世界上第一个编译器是怎么产生的?这道题有什么好思路?
recommend assembly code from gccHow to execute a shell command in java and display the output?
MatLab CodeHelp -- How to output error messages to a file for scripts called by system calls???
相对于machine code, assembly到底有啥改进?一道c
发一个在windows vista 上install Ubuntu 的方法VISUAL STUDIO 2005 输出窗口(output) 怎么找不到?
[转载] 简单的题都不敢做了.面试题 -算法?
Call assembly in c++ under linuxc++ 是否也有class method??
相关话题的讨论汇总
话题: assembly话题: gcc话题: syntax话题: details话题: ubuntu
进入Programming版参与讨论
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.
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.

1 (共1页)
进入Programming版参与讨论
相关主题
c++ 是否也有class method??相对于machine code, assembly到底有啥改进?
two c++ interview questions! (转载)发一个在windows vista 上install Ubuntu 的方法
STL iterator的疑问[转载] 简单的题都不敢做了.
Help with a simple c-shell script.Call assembly in c++ under linux
请教一道练习题(C,OS)Big # of files output problem in C
世界上第一个编译器是怎么产生的?这道题有什么好思路?
recommend assembly code from gccHow to execute a shell command in java and display the output?
MatLab CodeHelp -- How to output error messages to a file for scripts called by system calls???
相关话题的讨论汇总
话题: assembly话题: gcc话题: syntax话题: details话题: ubuntu