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 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!