[Solved] map c language into assembly language [closed]


I don’t know if such a book exists (if it does, it’ll likely be a book about compilers). However, there’s an easier solution: try it.

Write some C code, then compile it with debug symbols (these instructions assume linux):

gcc foo.c -o foo

Then, use a debugger:

gdb ./foo
break MyFunction
run
disass

This will set a breakpoint on MyFunction, then run the program until it reaches that breakpoint. disass will print the assembly for that function. You can use stepi to step one instruction at a time, or next to step one C line at a time.

1

solved map c language into assembly language [closed]