Program to convert C includes to ASM 
Author Message
 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.


Thu, 17 Feb 2000 03:00:00 GMT  
 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)



Thu, 17 Feb 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Missing includes in /usr/include/linux/*.h and /usr/include/asm.h

2. Include code in other Cs files

3. include another form(cs) in C#?

4. asm, asm, where fore art thou, asm?

5. call asm program from C program

6. Watcom included asm

7. How to include asm into TopSpeed C?

8. Newbie: separate big .cs file into small .cs files

9. convert asm to c

10. Problem #30 on http://cs.nmu.edu/programming/c/problems.htm

11. SoftEng or CS Graduate Program Search

12. FS: Programming and CS Books --- CHEAP

 

 
Powered by phpBB® Forum Software