Something terribly wrong with gcc-3.0.4 Linux

Neal D. Becker nbecker@hns.com
Thu Mar 28 08:42:00 GMT 2002


>>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:

    Jakub> On Thu, Mar 28, 2002 at 04:51:52PM +0100, Paolo Carlini wrote:
    >> Jakub Jelinek wrote:
    >> 
    >> >If libstdc++-v3 switches (optionally) back to libio, this overhead would
    >> >go away.
    >> >
    >> Indeed.
    >> 
    >> >But I believe for std::cout << "hello " << "world";
    >> >even without libio we should be able to write(1, "hello ", 6); write(1, "world", 5);
    >> >instead of 11 writes.
    >> >

What's wrong with:

fflush(stdio);
write (1, "hello world");

Only 1 call to write?



More information about the Gcc mailing list