Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

including the C header files in assembly program.

chowdarys
Beginner
732 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
732 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