---
title: 常用的编译选项
description: "常用的编译选项说明如下，全量的编译选项请参考毕昇编译器编译选项(https://www.hiascend.comdocument/detail/zh/canncommercial/900/compiler/BishengCompiler/atlas_bisheng_10_0010.html)。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/programug/Ascendcopdevg/atlas_ascendc_10_10075.html
sourcePath: /source/zh/canncommercial/900/programug/Ascendcopdevg/atlas_ascendc_10_10075.html
indexId: 1119e9c9194063d671758803a6dd436dc26c7f7c57730e82d4e4b2b05f26d32981
---
# 常用的编译选项

常用的编译选项说明如下，全量的编译选项请参考毕昇编译器编译选项(https://www.hiascend.comdocument/detail/zh/canncommercial/900/compiler/BishengCompiler/atlas_bisheng_10_0010.html)。

| 选项 | 是否必需 | 说明 |
| --- | --- | --- |
| \-help | 否 | 查看帮助。 |
| \-\-npu\-arch | 是 | 编译时指定的AI处理器架构，取值为dav\-<arch\-version>，其中<arch\-version>为NPU架构版本号，各产品型号对应的架构版本号请通过对应关系表进行查询。 |
| \-x | 否 | 指定编译语言。 指定为asc时表示Ascend C编程语言。 |
| \-o <file> | 否 | 指定输出文件的名称和位置。 |
| \-c | 否 | 编译生成目标文件。 |
| \-\-enable\-simt | 是 | 指定SIMT编程场景。 |
