Mail Archives: djgpp/1996/11/20/04:11:03
boerma AT cs DOT utwente DOT nl wrote:
>
> I have been having an argument with my DJGPP compiler all day, am
> getting pretty desparate. How do I get a make file to automatically
> assemble a preprocessed .S file. The trouble i have is that DOS
> doesn't know the difference between a .s (preprocessed) and a .S
> (to-be-preprossed) file. I tried cheeting by changing the original .S
> extension into .asm and preprocessing this file with the command:
> GCC -E -xassembler-with-cpp something.asm -o something.s
> After this "as -o something.o somthing.s" starts yelling at me that
> somthing.s doesn't contain any Intel assembly instructions it
> recognizes. By the way, GCC under Linux does preprocess and assemble
> this file correctly.
Just tell gcc to use a .S extension - it doesn't matter what the real
filename is. For example:
gcc ... file.S
is treated differently than
gcc ... file.s
regardless of the real case of the filename. Read the gcc docs that
come with DJGPP for more info; the place to look is in "Invoking
GCC|Overall Options".
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| * Proud user of DJGPP! * | http://www.cs.com/fighteer |
| ObJoke: If Bill Gates were a robber, not only would he |
| shoot you, but he'd send you a bill for the bullets. |
---------------------------------------------------------------------
- Raw text -