Web lists-archives.com

Re: [Mingw-users] Strange gprof results

>    void genwait( unsigned t )
>    {    unsigned i;
>         char line[3];
>         for( i = 0; i < t; i++ )
>         {    sprintf(line, "a");  }
>    }

I guess the linker optimized (despite of -O0 flag) this function.
I'd try with a for loop that really uses 'i' and 't'.

> while they clearly take different times to complete.

How do you know this? Have you measured times?


MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe