# 文件的汇编视图

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/clion/llms.txt).

在 CLion 中，您可以在不启动调试会话的情况下探索底层 Assembly 代码。

> **Tip:**
> 有关调试器反汇编视图的信息，请参阅 [此页面](disassembly-view.html)。

Procedure: 打开文件的汇编

1. 选择运行/调试配置，CLion 将从中获取编译器设置。

2. 在编辑器中打开文件。 右键点击文件内部，然后从上下文菜单中选择   显示程序集  ：

![在上下文菜单中显示汇编](https://resources.jetbrains.com/help/img/idea/2026.3/cl_showassembly_contextmenu.png)

或者，按 `Ctrl+Shift+A` (Windows), `⌘ ⇧ A` (macOS), `⌘ ⇧ A` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ P` (macOS System Shortcuts), `Ctrl+Shift+A` (XWin), `Ctrl+Shift+A` (GNOME), `Ctrl+Shift+A` (KDE), `Escape, X` (Emacs), `Ctrl+Shift+P` (Sublime Text), `⌘ ⇧ P` (Sublime Text (macOS)), `⌘ ⇧ A` (Xcode), `Ctrl+Shift+A` (Visual Studio), `⌘ ⇧ A` (Visual Studio (macOS)), `Ctrl+Shift+A` (ReSharper), `⌘ ⇧ A` (ReSharper (macOS)), `Ctrl+Shift+A` (QtCreator), `⌘ ⇧ A` (QtCreator (macOS)), `Ctrl+I` (NetBeans), `Ctrl+Shift+A` (Eclipse), `⌘ 3` (Eclipse (macOS))打开   查找操作  对话框，开始输入  Show Assembly 并从列表中选择操作：

![显示汇编操作](https://resources.jetbrains.com/help/img/idea/2026.3/cl_showassembly_findaction.png)

3. 当您调用   显示程序集  时，CLion 使用所选配置的编译器设置将代码编译为 Assembly。 在预览中，您可以看到哪些源代码生成了哪些汇编代码：

![文件的汇编视图](https://resources.jetbrains.com/help/img/idea/2026.3/cl_showassembly_view.png)

Procedure: 更改编译器参数并刷新汇编

* 在 Assembly 选项卡顶部，您可以找到编译器参数字段。 如果更改了标志，请确保点击 ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.inline.refresh.svg)以刷新汇编视图：

![使用修改后的标志刷新汇编视图](https://resources.jetbrains.com/help/img/idea/2026.3/cl_showassembly_refresh.png)

Procedure: 查看 x86 汇编和原始输出

* 使用 ![选项](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)菜单切换到 x86 Assembly（Intel）语法和/或查看带有符号名称但没有特定语法的原始输出：

![使用 Intel 语法和显示原始输出选项](https://resources.jetbrains.com/help/img/idea/2026.3/cl_showassembly_options.png)

> **Note:**
> 使用 Intel 语法  选项在 ARM 架构和 [MSVC](quick-tutorial-on-configuring-clion-on-windows.html#MSVC)工具链中不可用。

## 当前限制

* 仅支持 GCC、Clang 和 Visual Studio C++ 编译器。

* Show Assembly 不适用于 [CUDA](cuda-projects.html)文件。

## See also

### 操作指南

[无需构建即可编译文件](compiling-single-file.html) [Disassembly view in debug](disassembly-view.html)

