Mail Archives: djgpp/2002/11/10/03:05:25
Bill Cunningham wrote:
> "CBFalconer" <cbfalconer AT yahoo DOT com> wrote in message
>
> > I have been using Cygwin to check portability, and recently tried
> > an experiment. I compiled and run the same, largely compute
> > bound, program on both systems and timed their execution. Both
> > were compiled with "gcc -W -Wall -O2 -ansi -pedantic -gstabs+",
> > using gcc 3.1 on DJGPP, and gcc 3.2 on Cygwin. Both on the
> > identical machine, running W98.
> >
> > The program was considerably slower on Cygwin. The execution
> > commands were:
> >
> > timerun a 30000
> > timerun a 10000 on DJGPP, using 4dos command processor
> > (timerun is an alias, involving timer command)
> >
> > time ./a 30000
> > time ./a 10000 on Cygwin, using bash 2.05
> >
> > I believe the majority of the Cygwin slowdown is due to the slower
> > loading (although the program is much smaller than under DJGPP)
> > and slower console output handling. This is based on the
> > difference in times between the shorter and longer runs.
> >
... snip ...
> >
> Have you tried compiling the binaries under DJGPP and Cygwin to see which
> result is larger in bytes?
Had you bothered to snip you would have found that both your
questions were answered in the original posting, 1st and last
paragraphs left in above. Instead you quoted everything
unnecessarily in two replies. While I do admire my own coding,
this is going too far :-)
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
- Raw text -