including the C header files in assembly program.

including the C header files in assembly program.

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.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today