Mail Archives: djgpp/1999/01/25/15:44:26
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 -