2011-08-21 6 views
6

एमएसवीसी कंपाइलर्स command files का समर्थन करता है जिसका उपयोग कमांड लाइन विकल्पों को पास करने के लिए किया जाता है। यह मुख्य रूप से कमांड लाइन पैरामीटर के आकार पर प्रतिबंध के कारण होता है जिसे CreateProcess कॉल पर भेजा जा सकता है।क्या जीसीसी समर्थन कमांड फाइल

यह लिनक्स सिस्टम पर एक मुद्दा है लेकिन जीसीसी जैसे यूनिक्स अनुप्रयोगों के सिग्विन बंदरगाहों को निष्पादित करते समय, वही सीमा लागू होती है।

इसलिए, क्या किसी को पता है कि क्या 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

जो मुझे थोड़ा मूर्ख महसूस करता है, मेरे पास जीसीसी के लिए मैन पेज के चारों ओर एक पोक था और कुछ भी नहीं मिला :( –