Re: using common macros in NASM and C
- From: "randyhyde@xxxxxxxxxxxxx" <spamtrap@xxxxxxxxxx>
- Date: 25 Jul 2006 17:21:02 -0700
Frank Kotler wrote:
I don't know why assembler authors didn't think to make their assemblers
accept "#define"... I think Gas will include .h files(?). But that won't
help you with Nasm...
I was under the impression that GoAsm did this.
Then again, as a result of choosing to mimic the C preprocessor,
GoAsm's macro facilities tend to be much weaker than those found in
other assemblers.
Johannes Kroll has written a "converter" from .h files to something Nasm
will read. Won't read *everything* that you might find in an .h file,
but if you can keep the "common" .h files within its capacities, you can
run it on .h files as part of your build process. That's the closest I
know of to what you'd like to do...
Site where I found it seems to not find it. Latest version I have is here:
http://home.comcast.net/~fbkotler/h2incn-0.5.tar.gz
Thanks, Johannes!!!
Of course, the problem with the ".h"->".inc" translators is that they
only work with a tiny subset of the stuff that normally appears in an
..h file. Of course, if you're specifically writing the .h file for
assembly and C usage, this would work.
Cheers,
Randy Hyde
.
- Follow-Ups:
- Re: [Clax86list] using common macros in NASM and C
- From: Charles A. Crayne
- Re: [Clax86list] using common macros in NASM and C
- References:
- using common macros in NASM and C
- From: hackkaush
- Re: using common macros in NASM and C
- From: Frank Kotler
- using common macros in NASM and C
- Prev by Date: Re: using common macros in NASM and C
- Next by Date: Re: [Clax86list] using common macros in NASM and C
- Previous by thread: Re: using common macros in NASM and C
- Next by thread: Re: [Clax86list] using common macros in NASM and C
- Index(es):
Relevant Pages
|
|