文章寫得很好,我給貼過來了
引用:
On Wed, Sep 10, 2003 at 01:07:25PM -0700, garret.spears wrote:
> Refernce:
> gcc-2.95.3 -m5200 -x assembler led.S
Before you compile an assembly source file, you should decide whether
you want to pass it through the C preprocessor (CPP) or not. If you
decide to use the preprocessor then you should name your source-file
"something.S" (capital "S"); if not, then you should name it
"something.s" (lowcase "s"). Provided that you follow this convention
you don't *have* to specify the source-language explicitly using the
"-x <lang>" option; gcc can figure-it out from the filename
extension. If you don't want to or can't use this naming convention,
then "-x <lang>" is required:
gcc-2.95.3 -m5200 asmcode.s -o asmcode.o
gcc-2.95.3 -m5200 -x assembler asmcode.asm -o asmcode.o
Compile without passing th
汇编语言中的#define #include #ifdef 等问题
最新推荐文章于 2024-05-12 00:01:05 发布