Assembly view for files
In CLion, you can explore the underlying assembly code without starting a debug session.
tip
For information on the debugger's disassembly view, refer to this page.
Select the run/debug configuration from which CLion will take the compiler settings.
Open the file in the editor. Right-click inside it and select Show Assembly from the context menu:
Alternatively, press CtrlShift0A to open the Find Action dialog, start typing Show Assembly and select the action from the list:
When you invoke Show Assembly, CLion uses the compiler settings from the selected configuration to compile the code to assembly. In the preview, you can see which source code produces which assembly:
At the top of the assembly tab, you can find the compiler arguments field. If you change the flags, make sure to click
to refresh the assembly view:
Use the
menu to switch to x86 assembly (Intel) syntax and/or view raw output with symbol names but without any specific syntax:
note
The Use Intel Syntax option is disabled for ARM architectures and MSVC toolchains.
Only the GCC, Clang, and Visual Studio C++ compilers are supported.
Show Assembly doesn't work for CUDA files.
Thanks for your feedback!