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?

Regards,
Manolo

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
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:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe