I wrote a simple c++ program that prints "Hello World!"
#include <iostream>
using namespace std;
int main(){
cout<<"Hello World!\n";
}
I then compiled it using g++
$ g++ Desktop/sample.cpp -o Desktop/hello
How would I be able to view the machine language, is it just
$ less Desktop/hello
?
I'm just curious to see what "machine language" looks like. Here's a sample from the above command
C>^D<A1><F4><9E>^D^H<83><F8><FF>t^S<BB><F4><9E>^D^Hf<90><83><EB>^D<FF>Ћ^C<83><F8><FF>u<F4><83><C4>^D[]Ð<90>U
<89><E5>S<83><EC>^D<E8>^@^@^@^@[<81>Ì^X^@^@<E8><<FE><FF><FF>Y[<C9><C3>^C^@^@^@^A^@^B^@Hello World!
^@^@^@^AESC^C; ^@^@^@^C^@^@^@<A4><FE><FF><FF>@^@^@^@<C8><FE><FF><FF>\^@^@^@^H<FF><FF><FF>x^@^