From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12586 invoked by alias); 15 Nov 2006 15:38:21 -0000 Received: (qmail 12576 invoked by uid 22791); 15 Nov 2006 15:38:20 -0000 X-Spam-Check-By: sourceware.org Received: from exprod6og54.obsmtp.com (HELO exprod6og54.obsmtp.com) (64.18.1.189) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 15 Nov 2006 15:38:08 +0000 Received: from source ([192.150.20.142]) by exprod6ob54.postini.com ([64.18.5.12]) with SMTP; Wed, 15 Nov 2006 07:38:05 PST Received: from inner-relay-3.eur.adobe.com (inner-relay-3b [10.128.4.236]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id kAFFcKIY006626; Wed, 15 Nov 2006 07:38:24 -0800 (PST) Received: from fe1.corp.adobe.com (fe1.corp.adobe.com [10.8.192.70]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id kAFFbxeA023947; Wed, 15 Nov 2006 07:37:59 -0800 (PST) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by fe1.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 15 Nov 2006 07:37:58 -0800 Received: from 10.32.16.88 ([10.32.16.88]) by namailgen.corp.adobe.com ([10.8.192.91]) via Exchange Front-End Server namailhost.corp.adobe.com ([10.8.192.72]) with Microsoft Exchange Server HTTP-DAV ; Wed, 15 Nov 2006 15:37:56 +0000 User-Agent: Microsoft-Entourage/11.2.5.060620 Date: Wed, 15 Nov 2006 15:38:00 -0000 Subject: Re: is the c code in gcc comiled sequentially??? From: John Love-Jensen To: enggakshat , MSX to GCC Message-ID: In-Reply-To: <7359255.post@talk.nabble.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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/msg00205.txt.bz2 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