This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to include assembler include file in c source file?

I have an assembly include file (.inc) which contains a macro. Is there a way to include this file in C source file?

  • #include will accept any file name, and will include any file.

    But, Unless the assembler macro is written entirely in 'C', there will be no point in doing it!

    Conversely, Keil's A51 assembler can accept 'C' headers - see the A51 Manual for details & limitations...