This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cc1plus take too much memory
- From: mahmoodn <nt_mahmood at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 1 Jan 2008 02:29:24 -0800 (PST)
- Subject: Re: cc1plus take too much memory
- References: <14547002.post@talk.nabble.com> <18295.39564.699467.564027@zebedee.pink> <14549096.post@talk.nabble.com> <18295.65530.822002.329281@zebedee.pink> <14554622.post@talk.nabble.com> <18296.53113.311195.703501@zebedee.pink>
>Compile whichever file is causing the trouble with gcc -E to extract
>the preprocessed source.
I did what you said, the largest file is 768KB.
is good or bad?
Andrew Haley wrote:
>
> mahmoodn writes:
> >
> > >Run the program you were trying to compile through "gcc -E". How big
> > >is the resulting text? Are there any particularly long functions in
> > >your program? That kind of thing.
> >
> > I have long functions with many typedefs. Have they any effect?
> >
> > in the directory than contain makefile, the result of "gcc -E" is:
> > [naderan@Milky-way VVc_diagram_2]$ gcc -E
> > gcc: no input files
> >
> > I use "make" instead to compile the project. what should I do then?
>
> Compile whichever file is causing the trouble with gcc -E to extract
> the preprocessed source.
>
> Have you ever compiled a C file without using make?
>
> Andrew.
>
> --
> Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor,
> Berkshire, SL4 1TE, UK
> Registered in England and Wales No. 3798903
>
>
--
View this message in context: http://www.nabble.com/cc1plus-take-too-much-memory-tp14547002p14565612.html
Sent from the gcc - Help mailing list archive at Nabble.com.