On Tue, 31 Aug 2021, 07:43 Luo Xinsheng SGH ADWA4 via Gcc-help, < gcc-help@xxxxxxxxxxx> wrote: > Dear sir: > > Now I am using GCC to compile a series .c file with a huge directory to > search for header files. > > I find on GCC command options, there seems to be the size limit on > provided options. > From my test on GCC version 4.8.5, the options length which I can provide > seems to be limited at 12000 characters. > > Can you share the size limit of GCC command options? > I think the limit probably comes from the shell, not from GCC. You can use the @file option to pass extra options to GCC in a file, instead of on the command line. See the last option in the page at: https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/Overall-Options.html > > > Best Regards > ---------------------------------------------------- > Martin >