From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15969 invoked by alias); 15 Nov 2006 17:55:19 -0000 Received: (qmail 15959 invoked by uid 22791); 15 Nov 2006 17:55:18 -0000 X-Spam-Check-By: sourceware.org Received: from www.nabble.com (HELO talk.nabble.com) (72.21.53.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Nov 2006 17:55:10 +0000 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GkOyb-0004Qs-5r for gcc-help@gcc.gnu.org; Wed, 15 Nov 2006 09:55:09 -0800 Message-ID: <7362822.post@talk.nabble.com> Date: Wed, 15 Nov 2006 17:55:00 -0000 From: enggakshat To: gcc-help@gcc.gnu.org Subject: Re: is the c code in gcc comiled sequentially??? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: enggakshat@yahoo.com References: <7352560.post@talk.nabble.com> <7359255.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00211.txt.bz2 John Love-Jensen wrote: > > Hi Akshat, > >> -i really dont have a clue to what tool chain driver means.sorry for >> that. > > A "tool chain driver" is a program that executes other programs, in the > proper order, to achieve a particular goal. > > For example, the gcc tool chain driver runs the preprocessor, then takes > the > output from the preprocessor and runs that output through the compiler, > then > takes that output from the compiler and runs it through the assembler, > then > takes that output from the assembler and runs it through the linker, to > produce the executable. > >> for the following simple code i thought its obvious that 'hello' is >> printed >> but that doesnt happen. >> as far as i knew the code is executed sequentially. > > You have not flushed your buffer yet, so the "Hello" is languishing in the > buffer. > > Add a ... > cout.flush(); > ... statement to flush the buffer, before entering the loop. > > HTH, > --Eljay > > > thanks a lot dude. regards Akshat -- View this message in context: http://www.nabble.com/is-the-c-code-in-gcc-compiled-sequentially----tf2634251.html#a7362822 Sent from the gcc - Help mailing list archive at Nabble.com.