Software Archive
Read-only legacy content
17061 Discussions

including the C header files in assembly program.

chowdarys
Beginner
463 Views
Hi every one,

As I am a beginnerfor ia-32 assembly language programming; I have a questionabout the assembly programming. Could any one please suggest that; whether if there is any way that i can include customdefined C header files in assembly files.Hoping for kind consideration.
0 Kudos
1 Reply
mecej4
Honored Contributor III
463 Views
Many assemblers allow file inclusion through "include 'filename'" type directives. It is conceivable that if more elaborate preprocessing is needed that can be arranged for, as well.

However, what you specifically ask for, including C header files in assembly files does not make sense. The result of preprocessing should be assembleable source code. Therefore, if the "C header" files contained simply #define directives, you are simply asking for token substitutions and that is reasonable. If, however, you try to include, say, a C function prototype declaration, that would be seen as invalid syntax from the point of view of an assembler.
0 Kudos
Reply