| ??? 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 |
| Topic | Author | Date |
| 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 |



