From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19721 invoked by alias); 8 Aug 2009 21:15:57 -0000 Received: (qmail 19706 invoked by uid 22791); 8 Aug 2009 21:15:55 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-vw0-f178.google.com (HELO mail-vw0-f178.google.com) (209.85.212.178) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 08 Aug 2009 21:15:43 +0000 Received: by vws8 with SMTP id 8so2116781vws.14 for ; Sat, 08 Aug 2009 14:15:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.74.20 with SMTP id s20mr2747549vcj.15.1249766140939; Sat, 08 Aug 2009 14:15:40 -0700 (PDT) In-Reply-To: <659790780908080516m4010fb6em1c62e87360ed2cf@mail.gmail.com> References: <659790780908080516m4010fb6em1c62e87360ed2cf@mail.gmail.com> Date: Sun, 09 Aug 2009 16:10:00 -0000 Message-ID: <31d002d40908081415x377cf967hda4b397e99abed0e@mail.gmail.com> Subject: Re: Compiler for gcc From: Michael Hope To: Harshal Jain Cc: gcc@gnu.org, gcc@gcc.gnu.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00145.txt.bz2 Hi Harshal. I'm no expert, but GCC can be built by another C compiler. If you have a look at how GCC builds you'll see that it goes through a few stages - the first is where the local C compiler builds a first version of GCC, and then this new version of GCC is used to build itself. The same technique is used to build newer versions of GCC. If your machine currently has GCC version 3 and you want to build version 4 then the first step uses GCC 3 to build a temporary version of GCC 4, and then this temporary version is used to build the final version. -- Michael 2009/8/9 Harshal Jain : > As we know gcc is used 2 compile c programs n also gcc is used 2 > compile linux kernels also bt i wanted 2 know who is d compiler of > gcc? > means in which programming language compiler for gcc is written??? > -- > Regards , > Harshal Jain > > =93UNIX is simple. =A0It just takes a genius to understand its simplicity= .=94 > =96 Dennis Ritchie > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19773 invoked by alias); 8 Aug 2009 21:15:57 -0000 Received: (qmail 19714 invoked by uid 22791); 8 Aug 2009 21:15:57 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 08 Aug 2009 21:15:48 +0000 Received: from mx10.gnu.org ([199.232.76.166]:48352) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MZtGT-0001kA-HR for gcc@gnu.org; Sat, 08 Aug 2009 17:15:45 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MZtGS-0000BO-C2 for gcc@gnu.org; Sat, 08 Aug 2009 17:15:45 -0400 Received: from mail-vw0-f182.google.com ([209.85.212.182]:55045) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZtGS-0000B0-1G for gcc@gnu.org; Sat, 08 Aug 2009 17:15:44 -0400 Received: by vws12 with SMTP id 12so2213595vws.24 for ; Sat, 08 Aug 2009 14:15:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.74.20 with SMTP id s20mr2747549vcj.15.1249766140939; Sat, 08 Aug 2009 14:15:40 -0700 (PDT) In-Reply-To: <659790780908080516m4010fb6em1c62e87360ed2cf@mail.gmail.com> References: <659790780908080516m4010fb6em1c62e87360ed2cf@mail.gmail.com> Date: Sun, 09 Aug 2009 17:45:00 -0000 Message-ID: <31d002d40908081415x377cf967hda4b397e99abed0e@mail.gmail.com> Subject: Re: Compiler for gcc From: Michael Hope To: Harshal Jain Cc: gcc@gnu.org, gcc@gcc.gnu.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00146.txt.bz2 Message-ID: <20090809174500.DW-Ml0MQuAEbPpfnJycd3Urud-yk-7S6wPMrfSVaqGY@z> Hi Harshal. I'm no expert, but GCC can be built by another C compiler. If you have a look at how GCC builds you'll see that it goes through a few stages - the first is where the local C compiler builds a first version of GCC, and then this new version of GCC is used to build itself. The same technique is used to build newer versions of GCC. If your machine currently has GCC version 3 and you want to build version 4 then the first step uses GCC 3 to build a temporary version of GCC 4, and then this temporary version is used to build the final version. -- Michael 2009/8/9 Harshal Jain : > As we know gcc is used 2 compile c programs n also gcc is used 2 > compile linux kernels also bt i wanted 2 know who is d compiler of > gcc? > means in which programming language compiler for gcc is written??? > -- > Regards , > Harshal Jain > > =93UNIX is simple. =A0It just takes a genius to understand its simplicity= .=94 > =96 Dennis Ritchie >