Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – GCC是否支持命令文件大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

MSVC编译器支持 command files,用于传递命令行选项.这主要是由于可以传递给 CreateProcess调用的命令行参数的大小限制. 这在Linux系统上不是一个问题,但是当执行Unix应用程序的cygwin端口(例如gcC)时,同样的限制也适用. 因此,有谁知道gcc / g是否也支持某种类型的命令文件? 谢谢. 当然! @file Read command-
@H_158_15@mSVC编译器支持 command files,用于传递命令行选项.这主要是由于可以传递给 CreateProcess调用的命令行参数的大小限制.

这在Linux系统上不是一个问题,但是当执行Unix应用程序的cygwin端口(例如gcC)时,同样的限制也适用.

因此,有谁知道gcc / g是否也支持某种类型的命令文件

谢谢.

解决方法

当然!
@file
           Read command-line options from file.  The options read are inserted
           in place of the original @file option.  If file does not exist,or
           cAnnot be read,then the option will be treated literally,and not
           removed.

           Options in file are separated by whitespace.  A whitespace
           character may be included in an option by surrounding the entire
           option in either single or double quotes.  Any character (including
           a BACkslash) may be included by prefixing the character to be
           included with a BACkslash.  The file may itself contain additional
           @file options; any such options will be processed recursively.

如果您的平台拥有它,您还可以使用Xargs对此类事物进行评审.

大佬总结

以上是大佬教程为你收集整理的linux – GCC是否支持命令文件全部内容,希望文章能够帮你解决linux – GCC是否支持命令文件所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。