<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ansi c compiler in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850298#M721428</link>
    <description>Hi everyone,&lt;BR /&gt;does the Ansi C compiler 11.11.02 or the  HP-UX 11.00 default shell have a limitation on the number of command line arguments passed ?&lt;BR /&gt;&lt;BR /&gt;I have to compile with a lot of arguments (lots of -I for directory includes) and when I launch the cc command it loops infinitely. When I eliminate only one argument of the ~150 it actually compiles !&lt;BR /&gt;&lt;BR /&gt;Any Ideas ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 22 Nov 2002 16:46:05 GMT</pubDate>
    <dc:creator>L. Younes</dc:creator>
    <dc:date>2002-11-22T16:46:05Z</dc:date>
    <item>
      <title>Ansi c compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850298#M721428</link>
      <description>Hi everyone,&lt;BR /&gt;does the Ansi C compiler 11.11.02 or the  HP-UX 11.00 default shell have a limitation on the number of command line arguments passed ?&lt;BR /&gt;&lt;BR /&gt;I have to compile with a lot of arguments (lots of -I for directory includes) and when I launch the cc command it loops infinitely. When I eliminate only one argument of the ~150 it actually compiles !&lt;BR /&gt;&lt;BR /&gt;Any Ideas ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Nov 2002 16:46:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850298#M721428</guid>
      <dc:creator>L. Younes</dc:creator>
      <dc:date>2002-11-22T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ansi c compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850299#M721429</link>
      <description>Hi,&lt;BR /&gt;You can bipass the shell limitation by using xargs!&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Fri, 22 Nov 2002 16:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850299#M721429</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2002-11-22T16:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ansi c compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850300#M721430</link>
      <description>Thank You for the reply.&lt;BR /&gt;But I saw under linux a kernel option that can be increased to alloacte more memory for command line arguments, this requires of course recompiling the kernel.&lt;BR /&gt;&lt;BR /&gt;Is there something similar I can do in sam ?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 22 Nov 2002 17:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850300#M721430</guid>
      <dc:creator>L. Younes</dc:creator>
      <dc:date>2002-11-22T17:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ansi c compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850301#M721431</link>
      <description>In a meanwhile I've found this, which may be of any help for you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf5963a1c04ffd61190050090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf5963a1c04ffd61190050090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;Look at the second answer of S.K. Chan&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Adam</description>
      <pubDate>Mon, 25 Nov 2002 11:51:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850301#M721431</guid>
      <dc:creator>Adam J Markiewicz</dc:creator>
      <dc:date>2002-11-25T11:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ansi c compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850302#M721432</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;In 10.20 this limit was quite small and we needed a kernel parameter to increase it. Since 11.00 there is no increasable limit : it's fixed (and high !!!) in /usr/include/limits.h, (#define ARG_MAX).&lt;BR /&gt;&lt;BR /&gt;#    define ARG_MAX            2048000  /* maximum length of arguments for the exec function in bytes, including environment data */&lt;BR /&gt;&lt;BR /&gt;You can get this value using :&lt;BR /&gt;&lt;BR /&gt;# getconf ARG_MAX&lt;BR /&gt;2048000&lt;BR /&gt;&lt;BR /&gt;I think your limitation is rather in the compiler.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Nov 2002 12:38:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850302#M721432</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2002-11-25T12:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ansi c compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850303#M721433</link>
      <description>The maximum number of command line arguments is the kind of thing that varies from system to system, so for portable code you should not rely on having an enormous value.&lt;BR /&gt;&lt;BR /&gt;If you think you need a large value, I suggest reconsidering the design of your program. For example, consider GNU tar. To create a tar archive holding particular files, you place each file as a command-line argument. But tar is often used for backing up large directory trees, meaning potentially many (in fact, an unlimited number of) command-line arguments. Therefore GNU tar has an option for reading a list of filenames from a file. As another example, consider the recursive (-R) option of chmod.</description>
      <pubDate>Wed, 27 Nov 2002 10:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850303#M721433</guid>
      <dc:creator>Benedict Adamson</dc:creator>
      <dc:date>2002-11-27T10:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ansi c compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850304#M721434</link>
      <description>Given the huge limit on arguments in 11.00, it seems likely your build is hitting some other problem than total argument length.&lt;BR /&gt;However, there is an option to move command arguments into a file instead of the command line. You can use "cc +opts myfile" to ask cc to read options from "myfile" just as if they were on the command line.&lt;BR /&gt;There is a similar "-c myfile" option for ld.</description>
      <pubDate>Wed, 27 Nov 2002 21:59:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ansi-c-compiler/m-p/2850304#M721434</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2002-11-27T21:59:28Z</dc:date>
    </item>
  </channel>
</rss>

