由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Is GCC able to do this?
相关主题
GCC的编译?Questions about Makefile
GCC 一问[转载] 请教三个关于emacs和perl的问题
help needed-install gcc/g++ 4.7 on ubuntu 14.04A tough compiler problem
GCC 和 G++ 的区别在什么地方?[转载] molscript and grasp
请问:装了GCC以后where is libstdc++
g++编译时加了优化代码选项是不是会改变代码顺序?漆血柜求
[转载] MySQL 安装求助[转载] ask a question.
**真心求助!!多谢了!!Help: convert // to /* */ in C code?
相关话题的讨论汇总
话题: gcc话题: file话题: able话题: do话题: assembler
进入Unix版参与讨论
1 (共1页)
b*****n
发帖数: 684
1
I want to use GCC to compile a .c file into assembly code. For example, the
source code is written by C, after compilation, the output file is an assembly
code with "mov r1, r2" or something like that. Is GCC able to do this? Thanks.
A*****o
发帖数: 222
2
man gcc
-S Stop after the stage of compilation proper; do not
assemble. The output is an assembler code file for
each non-assembler input file specified.
By default, GCC makes the assembler file name for a
source file by replacing the suffix `.c', `.i',
etc., with `.s'. Use -o to select another name.
GCC ignores any input files that don't require com
pilation.

【在 b*****n 的大作中提到】
: I want to use GCC to compile a .c file into assembly code. For example, the
: source code is written by C, after compilation, the output file is an assembly
: code with "mov r1, r2" or something like that. Is GCC able to do this? Thanks.

1 (共1页)
进入Unix版参与讨论
相关主题
Help: convert // to /* */ in C code?请问:装了GCC以后
about compiling new glibc/gcc in fc14 (转载)g++编译时加了优化代码选项是不是会改变代码顺序?
好马配好鞍/介绍一套linux牛书/O'Reilly Animal Book[转载] MySQL 安装求助
A question about GCC**真心求助!!多谢了!!
GCC的编译?Questions about Makefile
GCC 一问[转载] 请教三个关于emacs和perl的问题
help needed-install gcc/g++ 4.7 on ubuntu 14.04A tough compiler problem
GCC 和 G++ 的区别在什么地方?[转载] molscript and grasp
相关话题的讨论汇总
话题: gcc话题: file话题: able话题: do话题: assembler