Mail Archives: djgpp/1999/04/11/07:39:38
On Sat, 10 Apr 1999, Luiz Fernando wrote:
> How can i compile an external assembler file with RHIDE and DJGPP. I
> have some files in my project (*.c) and one in an external asm file (*.s) .
> How can i compile it using RHIDE.
> And how can i compile it using gcc command in prompt of DOS.
From the command line, simply invoke GCC as if it were a C file:
gcc -c foo.S
This produces foo.o. Note the Capital .S: it is safer if your
assembly source includes comments and preprocessor directives. See
section 8.4 of the FAQ for more info on how does GCC recognize the
source language.
As for RHIDE, I'd guess that it will also compile such files
automatically. But I don't use RHIDE, so I might be wrong.
- Raw text -