Re: Assembly macros with Gcc
Re: Assembly macros with Gcc
- Subject: Re: Assembly macros with Gcc
- From: Markus Hitter <email@hidden>
- Date: Thu, 5 Feb 2004 12:34:44 +0100
Am 04.02.2004 um 22:02 schrieb Brad Post ((MACBU)):
Sorry, let me clarify, I am writing assembly code, using a .s file with
GCC, I don't need to know how to do macros with c or cpp files, but
with
assembly files.
Well, a suggestion from the IRIX Assembly Programmers Manual:
- Write some similar code in C.
- Let the compiler translate it (for gcc you want the -save-temps
option). This should give you some good samples of assembly syntax.
- Modify the resulting assembly to fit your needs.
However, this manual also notes, these days with pipelining RISC
processors it's difficult to enhance performance with assembly at all.
Have a look for the CHUD toolkit in this case. Probably you have some
other reason to write assembly.
Have fun,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.