Date: Mon, 25 Jan 1999 20:44:09 +0000 (GMT) From: George Foot To: djgpp AT delorie DOT com Subject: Re: asm modular or inline In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/