public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: enggakshat <enggakshat@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: Re: is the c code in gcc comiled sequentially???
Date: Wed, 15 Nov 2006 17:55:00 -0000	[thread overview]
Message-ID: <7362822.post@talk.nabble.com> (raw)
In-Reply-To: <C1809072.19529%eljay@adobe.com>




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.

  reply	other threads:[~2006-11-15 17:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-15  6:13 enggakshat
2006-11-15 12:20 ` John Love-Jensen
2006-11-15 15:07   ` enggakshat
2006-11-15 15:35     ` Ian Lance Taylor
2006-11-15 17:57       ` enggakshat
2006-11-15 19:18         ` Young, Michael
2006-11-15 15:38     ` John Love-Jensen
2006-11-15 17:55       ` enggakshat [this message]
2006-11-15 16:15 Kaz Kylheku

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7362822.post@talk.nabble.com \
    --to=enggakshat@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).