When I compile following simple Code I will get L1 error, Please let me know what's the wrong with this code:
#include <reg51.h> void main(void) { #pragma asm NOP NOP NOP #pragma endasm }
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: ?C_STARTUP
http://www.keil.com/support/docs/1980.htm
Don't do inline assembler. If you really need parts of your project in assembler, create separate assmebler modules and call them from 'C'.
Thanks, I didn't found given link in my search.
for nop there is a NOP macro, no inline is needed for that
"there is a NOP macro"
It's called an "Intrinsic Function" in the Manual.
See http://www.keil.com/support/man/docs/c51/c51_lib_intrinsic.htm for the full list.
See also http://www.keil.com/forum/docs/thread9886.asp