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 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

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.

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi