Mail Archives: djgpp/2001/01/18/08:39:11
Hi guys,
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? Would like to get any input before I try optimizing the
code any further.
This was a homework assignment, but was meant only to test different
algorithms vs each other, and not vs other compilers. The homework
assignment can be seen
at: http://wwwcsif.cs.ucdavis.edu/~davis/110/prog1.html
Thanks,
Mike Darrett
mrdarrett AT ucdavis DOT edu
http://mdarrett.freeyellow.com
Get a free Windows C++ compiler! With STL, OpenGL and DirectX support.
http://www.borland.com/bcppbuilder/freecompiler/
- Raw text -