This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Yes, that's true. The preprocessor of GNU as is not a pre-processor in the sense of the C compiler.I read the following: Preprocessing - The *as* internal preprocessor:It does not do macro processing, include file handling, or anything else you may get from your C compiler's preprocessor.
There is a "convention" that .s are pure assembler-files which could be passed to the assembler directly, but .S files do contain pre-processor macros (known from C). So, the .S must be passed to the pre-processor before passing the output to the assembler.Now the way the toolchains are used, it appears that .S files are preprocessed by the Assembler, because my MACROs in the .S are never getting defined& in the make files I see that the .S files are given to Assembler.
Best regards, Andi
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |