From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31497 invoked by alias); 28 Nov 2007 12:00:48 -0000 Received: (qmail 31489 invoked by uid 22791); 28 Nov 2007 12:00:47 -0000 X-Spam-Check-By: sourceware.org Received: from rn-out-0910.google.com (HELO rn-out-0102.google.com) (64.233.170.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Nov 2007 12:00:41 +0000 Received: by rn-out-0102.google.com with SMTP id e11so1176331rng for ; Wed, 28 Nov 2007 04:00:39 -0800 (PST) Received: by 10.70.23.2 with SMTP id 2mr8767205wxw.1196251238953; Wed, 28 Nov 2007 04:00:38 -0800 (PST) Received: by 10.70.54.17 with HTTP; Wed, 28 Nov 2007 04:00:38 -0800 (PST) Message-ID: <998d0e4a0711280400o573020fek29ce1661f3dec823@mail.gmail.com> Date: Wed, 28 Nov 2007 12:01:00 -0000 From: "J.C. Pizarro" To: "Duft Markus" , gcc-help@gcc.gnu.org Subject: Re: reduce compilation times? In-Reply-To: <18597F2B47F1394A9B309945EC72411201344B58@servex01.wamas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18597F2B47F1394A9B309945EC72411201344B58@servex01.wamas.com> 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-11/txt/msg00342.txt.bz2 On 2007/11/28, Duft Markus wrote: > Hi! > > I assume, that all strategies discussed here are targeted at C. now what > about C++, how do things behave there? As far as i know C++ is much > different, and requires completely different thinking with regards to > splitting source in more files, etc. > > Cheers, Markus Your comment is good. Splitting C files is different to splitting C++ files or splitting Java files, Fortran, Ada, ObjC, .... As GCC is made in C-only then we only need to split C files to reduce the recompilation time if we want. For other projects made in C++, Java, Fortran, Ada, ObjC, ...., they are hard to split their files. It would be a good idea to have a future implementation of GCC that says: "you don't need to split your source files because GCC recognizes automaticly parts of the unmodified & modified files". But this future implementation for the programmer that haven't to split source files is hard too!. J.C.Pizarro