From: Danny Smith <dannysmith@cl...>  20030106 08:55:57

I just noticed speed of mingw.cygwin being discussed on gcchelp : http://gcc.gnu.org/ml/gcchelp/200301/msg00032.html Modifying the test case shown there like so, give as intersting DECLSPEC comparison for mingw, with a 50% reduction in time on my ancient pentium. #include <stdio.h> #include <time.h> #include <stdlib.h> #ifdef USE_DECLSPEC __declspec(dllimport) double sin (double); __declspec(dllimport) double cos (double); __declspec(dllimport) double tan (double); __declspec(dllimport) double exp (double); __declspec(dllimport) double log (double); __declspec(dllimport) double log10 (double); __declspec(dllimport) double pow (double, double); __declspec(dllimport) double sqrt (double); #else #include <math.h> #endif int main(void) { clock_t start, finish; start = clock(); double sum = 0.0; for (double i = 0; i < 1e6; i++) { double val = (double) i + 0.01; sum += log(val); sum += exp(val); sum += sin(val); sum += cos(val); sum += tan(val); sum += log10(val); sum += sqrt(val); sum += pow(val, 4.567); } finish = clock(); double duration = (double)(finish  start) / CLOCKS_PER_SEC; printf ("sum is %.3f\n", sum); printf ("Elapsed time = %.3f s\n", duration); return 0; } Wu, have you made any progress on your proposed modifications to the runtime headers? Danny 