Shell keyword 'time' and gcc -mno-cygwin
Christopher Faylor
cgf-rcm@cygwin.com
Wed Oct 29 16:33:00 GMT 2003
On Wed, Oct 29, 2003 at 02:02:59PM +0200, Alex Vinokur wrote:
>===================================
>Windows 2000 Professional
>CYGWIN_NT-5.0 1.5.4(0.94/3/2)
>gcc version 3.3.1 (cygming special)
>===================================
>
>I compiled some program with Cygwin and Mingw32 interfaces.
>
>$ g++ fib.cpp -o fib_cyg
>
>$ g++ fib.cpp -mno-cygwin -o fib_nmg
>
>$ time -p fib_cyg th 10000 > zzz
>real 0.48
>user 0.44
>sys 0.03
>
>$ time -p fib_nmg th 10000 > zzz
>real 0.39
>user 0.02
>sys 0.04
>
>
>We can see that user-time-used for executable file with Mingw32 interface is nearly equal 0.
>It seems that that is not in line with the reality.
>
>Any explanation?
Beyond the obvious? Cygwin programs fill out the structures needed to
calculate run time. Native windows programs don't.
PTC.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list