From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32409 invoked by alias); 18 Nov 2004 18:34:08 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 32335 invoked from network); 18 Nov 2004 18:33:58 -0000 Received: from unknown (HELO storage.ukr.net) (212.42.65.69) by sourceware.org with SMTP; 18 Nov 2004 18:33:58 -0000 Received: from mail by storage.ukr.net with local ID 1CUr6T-000KRL-CB for gcc@gcc.gnu.org; Thu, 18 Nov 2004 20:33:57 +0200 Received: from [81.17.128.1] by www1.ukr.net with HTTP; Thu, 18 Nov 2004 18:33:57 +0000 (GMT) From: "naje" To: gcc@gcc.gnu.org Subject: compiler memory use optimization Mime-Version: 1.0 X-Originating-IP: unknown via proxy proxy.bigline.kharkov.ua [81.17.128.1] Reply-To: "naje" Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Message-Id: Date: Thu, 18 Nov 2004 18:45:00 -0000 X-SW-Source: 2004-11/txt/msg00633.txt.bz2 Hi, my program use C++ templates vary hard, so i've got much memory spent for compilation, and sometimes i've got "virtual memory exhaust" error. Is there any way to find out which part of my program is hard to compile to optimize it, and is there any methods to optimize memory use in gcc? And that kinds of optimizations of my code can i use to optimize compilation? I use gcc3.3 on freebsd 5.2. Thank you.