• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

How to view code as Assembly

AnonyViet by AnonyViet
May 13, 2023
in Tips
0

Once you’ve decided to take the path of security, sooner or later you’ll have to come into contact with Assembly. I know this is a very difficult language to understand, even for readers who understand binary strings. So, in this article, I will introduce you to the website Compiler Explorer, helps you to view your code as Assembly. Especially this website can see each line and highlight for you.

Join the channel Telegram belong to AnonyViet ???? Link ????

How to view code as Assembly

What is Compiler Explorer?

Compiler Explorer is a free and open source website that allows you to write, compile, and analyze source code to Assembly code, all in one browser tab. You can paste any C or C++ code (or one of 30 other supported languages), choose a compiler, run the program and see the Assembly code that corresponds to each line of code. You can also choose a lot of different compilers for each language you want.

Here you can view the warnings, errors, and Assembly code generated by the compiler, as well as view the output of the program.

What about interpreted languages ​​like Python? Python source code can be compiled into bytecode to run on Python Virtual Machine .

You can see a C++ function compiled to Assembly code x86-64 in the image below.

How to view code as Assembly 6

Here is the Python code compiled into Python bytecode.

How to view code as Assembly 7

One of the features I like most about this site is that it can generate a link to your existing code. For example, when accessing this link, you will still see the lines of code that you code, the assembly code, and the output of the program. You can use this feature to share the code you want to your friends.

Why you should use Compiler Explorer

You can see what your source code is compiled to. Although any compiler can do that, Compiler Explorer will tell you exactly how each line of your code is converted to Assembly code.

One of the main uses of Compiler Explorer is to study low-level performance optimization. By knowing how your computer executes each line of code, you can analyze how those lines of code affect execution speed.

Compare compilers and architectures

You can analyze the different optimizations by seeing how the compiler affects the generated binary. The image below shows a compiled C++ function without optimization (-O0).

How to view code as Assembly 8

The image below also uses the same C++ function as above, but it is compiled using optimizations -O3.

How to view code as Assembly 9

As you can see, the compiler gcc will create another binary file. You can also choose a different system architecture. As shown below, I choose ARMv7-a architecture.

How to view code as Assembly 10

Compiler Explorer is extremely flexible and convenient because it allows you to do many compiler related things in a single browser tab.

Compiler Explorer has helped me a lot in self-studying Assembly and understanding how compiler works. I think this site is also for those of you who are studying code optimization.

Rate this post

Tags: AssemblyCodeview
Previous Post

[FaceBook]Instructions on how to “stealth” completely on Facebook

Next Post

How to hack the hot Doggo Go puzzle with the golden boy

AnonyViet

AnonyViet

Related Posts

Instructions on how to make money from personal Facebook
Tips

Instructions on how to make money from personal Facebook

May 2, 2026
How to add sliders to Facebook Stories to easily rewind videos
Tips

How to add sliders to Facebook Stories to easily rewind videos

April 21, 2026
How to change the default font on Windows 10
Tips

How to change the default font on Windows 10

April 13, 2026
5 tips for using a Browser to replace an App (helps save RAM, time and money)
Tips

5 tips for using a Browser to replace an App (helps save RAM, time and money)

April 13, 2026
How to make funny MeMe photos without Photoshop within 10 seconds
Tips

How to make funny MeMe photos without Photoshop within 10 seconds

April 11, 2026
How to quickly design your own Logo without Photoshop
Tips

How to quickly design your own Logo without Photoshop

April 10, 2026
Next Post
How to hack the hot Doggo Go puzzle with the golden boy

How to hack the hot Doggo Go puzzle with the golden boy

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

Instructions on how to make money from personal Facebook

Instructions on how to make money from personal Facebook

May 2, 2026
Create an avatar to celebrate April 30 with a beautiful red flag shirt with yellow stars

Create an avatar to celebrate April 30 with a beautiful red flag shirt with yellow stars

April 30, 2026
How to get 2 months of Super Duolingo for free worth 300k

How to get 2 months of Super Duolingo for free worth 300k

April 30, 2026
How to create a Face Sticker Collection using ChatGPT

How to create a Face Sticker Collection using ChatGPT

April 29, 2026
Instructions on how to make money from personal Facebook

Instructions on how to make money from personal Facebook

May 2, 2026
Create an avatar to celebrate April 30 with a beautiful red flag shirt with yellow stars

Create an avatar to celebrate April 30 with a beautiful red flag shirt with yellow stars

April 30, 2026
How to get 2 months of Super Duolingo for free worth 300k

How to get 2 months of Super Duolingo for free worth 300k

April 30, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Instructions on how to make money from personal Facebook

Instructions on how to make money from personal Facebook

May 2, 2026
Create an avatar to celebrate April 30 with a beautiful red flag shirt with yellow stars

Create an avatar to celebrate April 30 with a beautiful red flag shirt with yellow stars

April 30, 2026
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply