This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygwin gcc performance


Hello,

Could someone explain me why gcc cygwin compiler take so long to build a
simple hello world program compared with mingw ?

Thank you

test.c :
#include <stdlib.h>
#include <stdio.h>

int main(void)
{
	printf("Hello\n");
}

$ time gcc test.c -o test

real    0m2.409s
user    0m0.291s
sys     0m1.994s

$ time /cygdrive/c/MINGW/bin/gcc test.c -o test

real    0m0.958s
user    0m0.015s
sys     0m0.171s

On a AMD Athlon 1800+ 256M RAM

cygcheck -s
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Jun 04 12:21:25 2004

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	c:\WINNT\system32
	c:\WINNT
	c:\WINNT\System32\Wbem
	c:\Program Files\Fichiers communs\applicom
	c:\Program Files\applicomIO\2.2
	c:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
	c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
	c:\Program Files\Microsoft Visual Studio\Common\Tools
	c:\Program Files\Microsoft Visual Studio\VC98\bin

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

HOME = `C:\cygwin\home\mvial'
MAKE_MODE = `unix'
PWD = `/home/mvial'
USER = `mvial'

Use `-r' to scan registry

a:  fd           N/A    N/A
c:  hd  NTFS   12001Mb  61% CP CS UN PA FC     Disque local
d:  hd  FAT32  10485Mb  39% CP    UN           ECHANGE
e:  cd           N/A    N/A

.              /cygdrive  user    binmode,cygdrive
C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll
    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll
  831k 2003/09/20 C:\cygwin\bin\cygdb-4.1.dll
 1080k 2003/09/20 C:\cygwin\bin\cygdb_cxx-4.1.dll
  155k 2004/01/07 C:\cygwin\bin\cygexpat-0.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll
   69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll
   12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll
  134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll
  958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll
   62k 2003/12/11 C:\cygwin\bin\cygpcre-0.dll
   63k 2003/04/11 C:\cygwin\bin\cygpcre.dll
    9k 2003/12/11 C:\cygwin\bin\cygpcreposix-0.dll
   61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll
 1049k 2003/11/07 C:\cygwin\bin\cygperl5_8_2.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll
   61k 2003/12/04 C:\cygwin\bin\cygz.dll
 1100k 2004/03/16 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.5.8
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 112
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Build date: Tue Mar 16 00:19:51 EST 2004
        Shared id: cygwin1S4


Cygwin Package Information
Package              Version
_update-info-dir     00227-1
ash                  20040127-1
autoconf             2.59-1
autoconf-devel       2.59-1
autoconf-stable      2.13-5
automake             1.7.9-1
automake-devel       1.7.9-1
automake-stable      1.4p6-2
base-files           2.6-1
base-passwd          1.1-1
bash                 2.05b-16
binutils             20040312-1
bison                20030307-1
bzip2                1.0.2-5
crypt                1.1-1
cygwin               1.5.8-1
diffutils            2.8.4-1
editrights           1.01-1
ELFIO                1.0.0-1
expat                1.95.7-1
fileutils            4.1-2
findutils            4.1.7-4
flex                 2.5.4a-3
gawk                 3.1.3-4
gcc                  3.3.1-3
gcc-mingw            20030911-4
gcc-mingw-core       20031020-1
gdb                  20030919-1
gdbm                 1.8.3-7
grep                 2.5-1
groff                1.18.1-2
gzip                 1.3.5-1
indent               2.2.9-1
less                 381-1
libbz2_1             1.0.2-5
libdb4.1             4.1.25-1
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-7
libgdbm3             1.8.3-3
libgdbm4             1.8.3-7
libgettextpo0        0.12.1-3
libiconv2            1.9.1-3
libintl1             0.10.40-1
libintl2             0.12.1-3
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-4
libpcre              4.1-1
libpcre0             4.5-1
libreadline4         4.1-2
libreadline5         4.3-5
login                1.9-7
m4                   1.4-1
make                 3.80-1
man                  1.5k-2
mingw-runtime        3.2-1
mktemp               1.5-3
ncftp                3.1.4-1
ncurses              5.3-4
patch                2.5.8-8
patchutils           0.2.22-2
pcre-devel           4.5-1
pcre-doc             4.5-1
perl                 5.8.2-1
readline             4.3-5
sed                  4.0.9-2
sh-utils             2.0.15-4
sharutils            4.2.1-3
tar                  1.13.25-5
tcltk                20030901-1
termcap              20021106-2
terminfo             5.3_20030726-1
texinfo              4.2-4
textutils            2.0.21-1
unzip                5.50-5
vim                  6.2.098-1
w32api               2.5-1
which                1.5-2
zip                  2.3-6
zlib                 1.2.1-1
Use -h to see help about each section


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]