C99 and GMP tuning

Torbjörn Granlund tg at gmplib.org
Mon Apr 9 15:45:16 UTC 2018


sav_ix at ukr.net writes:

  Presumably this should lead to dropping support of old systems, which
  compilers do not provide C99 support. On the other side, more recent
  OSes provide better 'clock()' implementation, which accuracy
  (depending of used OS) in times or magnitudes better, compared to
  'getrusage()'.

  After moving to C99, can GMP Developers consider to drop use of non
  portable 'getrusage()', 'rusage' etc. in favor of 'clock()'? The
  advantage in addition to portability could be that the running time of
  the tuning be shortened (need be verified).

This seems completely unrelated to C90 vs C99.

I also think you're wrong.  If you are aware of a specific system where
clock() is more accurate than getrusage, then let us know.  But please
don't base that on beliefs, instead check that it is actually the case.


-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-discuss mailing list