Date: Sun, 19 Jul 1998 18:31:21 +0300 (IDT) From: Eli Zaretskii To: Jorge Morgado cc: djgpp AT delorie DOT com Subject: Re: Assembler whit djgpp ? In-Reply-To: <6oqd5v$52m$1@duke.telepac.pt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.