2011-08-21 33 views
6

MSVCコンパイラはcommand filesをサポートしており、コマンドラインオプションを渡します。これは主に、CreateProcessコールに渡すことができるコマンドラインパラメータのサイズの制限によるものです。GCCはコマンドファイルをサポートしています

これはLinuxシステムの問題ではありませんが、gccなどのUnixアプリケーションのcygwinポートを実行する場合、同じ制限が適用されます。

したがって、gcc/g ++でもいくつかのタイプのコマンドファイルがサポートされているかどうかは知っていますか?

ありがとうございました。

+1

http://gcc.gnu.org/onlinedocs/gccint/Options.html – arunkumar

答えて

10

確かに!

@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があるもののこのタイプは、ご使用のプラットフォームがそれを持っている場合。

+0

私はちょっと愚かな気分になりますが、gccのmanページの周りに何かを見つけることができませんでした。 –

関連する問題