This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Shell keyword 'time' and gcc -mno-cygwin
- From: Christopher Faylor <cgf-rcm at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 29 Oct 2003 10:01:14 -0500
- Subject: Re: Shell keyword 'time' and gcc -mno-cygwin
- References: <bnoaa3$k65$1@sea.gmane.org>
- Reply-to: cygwin at cygwin dot com
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/