Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
How do I use a c header file in an assembly file? When I use: #include "xxx.h" I get the invalid line start error. Please help
Take a look at this www.arm.com/.../1208.html The question is realview tool set for keil is "real"view?
Take a look at this www.arm.com/.../1208.html But it says it only applies to #include and #define - so you can't just go using any 'C' header willy-nilly in your assembler!
You are right. but it shouldn't generate that error. looks like the assember doesn't understand what # is
"but it shouldn't generate that error."
Why not?
"looks like the assember doesn't understand what # is"
Quite possibly not - it understands what #define is, and what #include is, but nothing else. Therefore, any line that starts with a # that is not followed by "define" or "include" will produce an error - and "invalid line start" sounds like a perfectly good name for that error!