This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpplib: Tweak conditional block skipping


> Richard Henderson <rth@redhat.com> writes:
> > 2**22 _is_ 4MB.  And the standard requires at least 4k columns,
> > which is 12 bits, which leaves you with a measly 1MB for a line
> > number, which is probably exceeded by any nontrivial use of c++.

I have a single C source file (automatically generated by the Mercury compiler)
in my current workspace which is >14M bytes and >0.4M lines.
This is generated from a Mercury source file that is about 0.3M bytes
and 8k lines, using the Mercury compiler's `--debug' option, which causes
additional code to be included in the generated C file.

If I compile the same Mercury source file with `--debug --deep-profiling'
(a rarely used combination, but one that is occaisionally needed for debugging
bugs in the Mercury profiler) then the generated C file is >0.8M lines.

That is getting dangerously close to 1M lines.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]