
Program to convert C includes to ASM
Quote:
>>>I am looking for a program that will take a C include file and convert
>>>its contents to an assmebly include file.
>>This doesn't make a lot of sense. The purpose of headers is to provide
>>declarations and definitions that are requird by C source files. If you
>>change them into a different language that obviously wont't work. Most
>>things in headers simply don't generate any assembly/object code output
>>when compiled.
>umm. if it's turbo C, you can pay for the runtime library.
Most vendors will sell you their standard library source. The point
is that while headers contain macro definitions and declarations of
various sorts, and no actual code, if you want to do Windows programming
in assembler you need to convert windows.h into something the assembler
can read. MASM offers H2INC, which will convert .h files into .INC files.
It is a text file to text file converter. Someone was telling me you
could convert all the standard headers to MASM and link to Microsoft's
libraries, but I don't know how H2INC or MASM would deal with something
like printf -- It would probably have to inject some code around the
function.
[I have on one of my hard drives what claims to be an ANSI C compliant
verson of the entire standard C library written in 386 assembler, but
I haven't really tested or played with it much.]
--
Craig
Manchester, NH
Princess Diana(1961-1997)