- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page