C with assembly

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

C with assembly

Post by mcheung63 »

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.

Image
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: C with assembly

Post by AndrewAPrice »

Sorry, I don't understand what you're saying or asking.
My OS is Perception.
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: C with assembly

Post by Creature »

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.
Post Reply