For efficiency,i have to use inline assembly in my code, but I failed to access local variables My code is something like this:
void func(void) { unsigned int i; i=0; #pragma asm MOV A,i #pragma endasm }
but i get a error : error A45: UNDEFINED SYMBOL (PASS-2)
So i there and way to solve this problem
For efficiency I would recommend that you consider adding an assembler file and write the full function in assembler. You write the assembler code, and let the compiler generate processor instructions based on your C code.
Definitely.
You can get the compiler to create the "skeleton" for you:
www.8052.com/.../149030