This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: cc1plus take too much memory


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


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