Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/28/02 16:22
Read: times


 
#31558 - RE: accessing c macros in asm file
Anand:
With the Keil tool set the standard syntax of the C pre-processor is available for use in assembler source files. For example in the assembler file source you can write a line as:

#define NUM 5

and it will work similar to the way it does in the C file.

The way to share such macros between the C files and the assembler files is to put all the stuff you want to share into a .h file. Then simply use the "include" syntax to have the C file and/or assembler file use the common stuff.

Regarding the assembly language macros. In the Keil assembler there is a macro language that you can use to do all sorts of cool stuff.....however these macros will not compile if you stuffed them into a C source file.

Mike Karas



List of 3 messages in thread
TopicAuthorDate
accessing c macros in asm file            01/01/70 00:00      
RE: accessing c macros in asm file            01/01/70 00:00      
RE: accessing c macros in asm file            01/01/70 00:00      

Back to Subject List