“ -Wa,option”的目的是什么?在海湾合作委员会? [英] What is the purpose of "-Wa,option" in GCC?

查看:122
本文介绍了“ -Wa,option”的目的是什么?在海湾合作委员会?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用


-Wa,option

-Wa,option

在GCC中?我可以传递给汇编器的所有选项有哪些?是否有所有GCC选项的列表?

in GCC? What are all the options I can pass to the assembler? Is there a list of all GCC options?

例如,我发现 -Wa,-a,-ad 此处

推荐答案

始终检查文档


-Wa,option

通过选项作为汇编程序的选项。如果option包含逗号,则会在逗号处将其拆分为多个选项。

-Wa,option
Pass option as an option to the assembler. If option contains commas, it is split into multiple options at the commas.

所以在您的情况下, -a -广告传递给了汇编程序,这些操作取决于您的汇编程序。 Gcc不知道如何处理系统特定的汇编器选项,因此给它 -Wa 标志可以让它知道仅传递后续内容。

So in your case -a and -ad were passed to the assembler, what those do depend on your assembler. Gcc doesn't know what to do with system-specific assembler options so giving it the -Wa flag lets it know to just pass whatever follows through.

您还可以通过手册页在本地找到文档。要打开有关GNU汇编程序的文档,请执行以下操作:

You can also find the documentation locally via man pages. To open the documentation on GNU's assembler, perform:

$ man 1 as

它将打开:

AS(1)                        GNU Development Tools                       AS(1)

NAME
       AS - the portable GNU assembler.

SYNOPSIS
       as [-a[cdghlns][=file]] [--alternate] [-D]
        [--compress-debug-sections]  [--nocompress-debug-sections]
        [--debug-prefix-map old=new]
        [--defsym sym=val] [-f] [-g] [--gstabs]
        [--gstabs+] [--gdwarf-2] [--gdwarf-sections]
        [--help] [-I dir] [-J]
        [-K] [-L] [--listing-lhs-width=NUM]
        [--listing-lhs-width2=NUM] [--listing-rhs-width=NUM]
        [--listing-cont-lines=NUM] [--keep-locals] [-o
        objfile] [-R] [--reduce-memory-overheads] [--statistics]
        [-v] [-version] [--version] [-W] [--warn]
        [--fatal-warnings] [-w] [-x] [-Z] [@FILE]
        [--size-check=[error|warning]]
        [--target-help] [target-options]
        [--|files ...]
        ...

这篇关于“ -Wa,option”的目的是什么?在海湾合作委员会?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆