Assembly macros with Gcc
Assembly macros with Gcc
- Subject: Assembly macros with Gcc
- From: "Brad Post \(MACBU\)" <email@hidden>
- Date: Wed, 4 Feb 2004 10:48:13 -0800
- Thread-topic: Assembly macros with Gcc
Anyone have a good reference on how to do macros in assembly? I'm
trying to get some macros to work with gcc and Project Builder (not
Xcode) and having some troubles, so does anyone know a good reference
with decent examples?
I'm trying to do something like this:
#define SAVE_STATISTICS(stat, reg)
lwz reg, stat(r3)
addi reg, reg, 1
stw reg, stat(r3)
I've tried a bunch of stuff, but gcc doesn't seem to like it and I'm
hoping someone here might have a good reference book or website....
Thanks.
Brad
_______________________________________________
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.