From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27247 invoked by alias); 31 Dec 2007 11:16:42 -0000 Received: (qmail 27239 invoked by uid 22791); 31 Dec 2007 11:16:42 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 31 Dec 2007 11:16:21 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id lBVBGJim005733 for ; Mon, 31 Dec 2007 06:16:19 -0500 Received: from zebedee.littlepinkcloud.COM (vpn-14-13.rdu.redhat.com [10.11.14.13]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lBVBGGtk027320; Mon, 31 Dec 2007 06:16:18 -0500 Received: from littlepinkcloud.COM (localhost.localdomain [127.0.0.1]) by zebedee.littlepinkcloud.COM (8.13.8/8.13.5) with ESMTP id lBVBGA0K005142; Mon, 31 Dec 2007 11:16:12 GMT Received: (from aph@localhost) by littlepinkcloud.COM (8.13.8/8.13.5/Submit) id lBVBG9f0005139; Mon, 31 Dec 2007 11:16:09 GMT MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18296.53113.311195.703501@zebedee.pink> Date: Mon, 31 Dec 2007 11:16:00 -0000 From: Andrew Haley To: mahmoodn Cc: gcc-help@gcc.gnu.org Subject: Re: cc1plus take too much memory In-Reply-To: <14554622.post@talk.nabble.com> 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> X-Mailer: VM 7.19 under Emacs 22.0.93.1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00461.txt.bz2 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