Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 5674  / 2 Years ago, sun, december 5, 2021, 9:27:46
g++ -c xyz.cpp


creates an object file xyz.o



But when I open it in vim editor it shows some crazy text...



How can I see the machine code?



What package can use to open and see that machine code?


More From » programming

 Answers
1

Check out the binutils package.



In it you'll find objdump - display information from object files.



Then try running objdump -d xyz.o.


[#35487] Sunday, December 5, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
repend

Total Points: 195
Total Questions: 113
Total Answers: 107

Location: Nicaragua
Member since Tue, Dec 8, 2020
3 Years ago
repend questions
Thu, May 11, 23, 09:38, 1 Year ago
Thu, Jan 5, 23, 21:41, 1 Year ago
Mon, Nov 22, 21, 19:37, 3 Years ago
Mon, Jan 24, 22, 11:26, 2 Years ago
;