Mail Archives: djgpp/1998/07/19/11:32:37
On Sat, 18 Jul 1998, Jorge Morgado wrote:
> What is the sintaxe, in particular how do I define a function in an .s
> file
The best advice I can give you is to look at working examples. The DJGPP
library sources (v2/djlsr201.zip) have many .s files which you can use.
> them compile it whit as, and how can I call that function from my c
> file?
The easiest way is to use GCC, not to call as directly:
gcc -c foo.S
Note the capital .S: it tells GCC to pass the source through the
pre-processor, in case you use /* */-style comments and other
pre-processor features.
- Raw text -