---
title: AutoBOLT和BOLTUSE的通用选项
description: "- -fbolt-target=NAME用于指定BOLT的优化对象，使用该选项后除了NAME之外的二进制和动态库都不会优化。使用该选项时，必须指定NAME。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdevkithistory/hgcc/hist-hgcc/kunpenghgcc_06_0012.html
sourcePath: /source/zh/kunpengdevkithistory/hgcc/hist-hgcc/kunpenghgcc_06_0012.html
indexId: 6dd6ecd5b7e3b4ea7f0787ea7e818e69f545506738b27e05c0669c9adf478add71
---
# AutoBOLT和BOLTUSE的通用选项

- -fbolt-target=NAME用于指定BOLT的优化对象，使用该选项后除了NAME之外的二进制和动态库都不会优化。使用该选项时，必须指定NAME。
- -fbolt-option=PARAM用于指定BOLT的优化选项，不同选项以逗号分隔，如-fbolt-option="-reorder-blocks=cache+,-reorder-functions=hfsort+"。使用该选项，必须指定PARAM，优化选项详情可使用llvm-bolt --help查询。
