delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/25/15:44:26

Date: Mon, 25 Jan 1999 20:44:09 +0000 (GMT)
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: asm modular or inline
In-Reply-To: <z_sq2.1367$p81.1384@newsr2.u-net.net>
Message-ID: <Pine.OSF.4.05.9901252023260.14881-100000@sable.ox.ac.uk>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sat, 23 Jan 1999, Max Erhard wrote:

> Are there any good sites that show you the pros and cons of inline and
> modular asm and how to call asm functions from c and linking it all together
> and stuff. Any really good tutorials of asm in general.

I wrote a small document about using assembly language for
entire functions in .s files, rather than inline, a long time
ago.  I know of some errors in it, but generally I think it's
correct.

    http://users.ox.ac.uk/~mert0407/asmfuncs.txt

In particular note the calling conventions.  The document
doesn't point out that they only apply when your functions call
gcc-compiled code or gcc-compiled code calls your functions.  
How your assembly language functions interact with each other is
entirely up to you.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

ko cilre fi la lojban  --  http://xiron.pc.helsinki.fi/lojban/

- Raw text -


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