2004-10-06 05:32 PM
2004-10-05 07:53 PM
Hi
i am compiling the firmware on the Hiware compiler . While building the code i get error mentioned below main.c(57): FATAL C4440: Unknown directive: __asm any helps2004-10-05 09:08 PM
For Metrowerks to use mixed assembly and C
use ''asm'' directive e.g. asm RIM asm SIM Hope this helps Thanks and Regards, PraveenG2004-10-05 10:15 PM
For further information have a look at the ST Application Note
at page 10. Regards WoRo2004-10-05 11:42 PM
hi
i have used the asm function in the code . while i am compiling the code i get that error . FATAL C4440: Unknown directive: __asm it is like this way #asm ---- assembly code #endasm i get error on the statement #asm can u help me to resolve the error2004-10-06 12:53 AM
I'm not used to the Hiware compiler, but i think you should use this syntax:
asm { ... assembler code ... } The #asm and #endasm commands are used in the Cosmic compiler. Hiware will give an error. Greets!2004-10-06 12:58 AM
I just the following instruction with Metrowerks compiler and it works fine
#asm SIM #endasm There shouldn't be any space between '#' and 'asm'. Hope this helps Thanks and regards, Parveen2004-10-06 05:32 PM
thanks Joble i got it done