Mail Archives: djgpp/2001/01/18/10:45:35
On Wed, 17 Jan 2001, Mike Darrett wrote:
> I was running some algorithm benchmarks on DJGPP vs Borland C++ 5.5, and
> was shocked to see that DJGPP outperformed Borland C++ on some stack
> tests. Using a linked list to simulate a stack, adding and removing 80,000
> entries took 1.8 seconds on my AMDK6-2 350, but took 2.5 seconds on
> Borland C++, compiled without the -tW option (since it is a console app).
>
> Any ideas? Is Borland C++ using thunking to access memory? Is DJGPP simply
> more efficient?
Did you try to look at the machine code in each case? That might give
you some clues.
Another possibility might be code and/or data alignment. Latest versions
of GCC and DJGPP do a good job there; does Borland come anywhere near?
- Raw text -