delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/19/11:32:37

Date: Sun, 19 Jul 1998 18:31:21 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jorge Morgado <morgado AT mail DOT telepac DOT pt>
cc: djgpp AT delorie DOT com
Subject: Re: Assembler whit djgpp ?
In-Reply-To: <6oqd5v$52m$1@duke.telepac.pt>
Message-ID: <Pine.SUN.3.91.980719182839.1021H-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019