For os develop, I think we love to see what a c sourse code compiled into assembly. It is good to show the assembly under each line of c source code. But the windows is too small.
I assume your have loaded your elf file into the correct memory location, in peter-bochs, I will show the assembly language from memory and the assembly from the elf file section. If you see they are the same, that mean you have loaded your elf correctly.
C with assembly
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
Re: C with assembly
I think he's asking for a resolution to the fact that the window is too small to put the C code next to the Assembly code. Why not just open two windows next to each other that have exactly the same breakpoint (place one in one window, it appears in the other window and vice versa), one in ASM and one in C?
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.