Jasper Chow
Junior Member level 3
I wrote a simple 8051 C program in keil, debugged it and found the linker created lots of additional asm code that seems pointless. The first instruction of the program is a LJMP to a far distant place ,and the program starts excuting the additional asm code, most of which is useless actions like
data transferring between the accumulator and general registers. The program goes through hundreds of machine cycles before it reaches the entry of main function. I am confused. What are those extra instructions for?
data transferring between the accumulator and general registers. The program goes through hundreds of machine cycles before it reaches the entry of main function. I am confused. What are those extra instructions for?