delorie.com is funded by banner ads.
  www.delorie.com/djgpp/v2faq/faq112.html   search  

| Previous | Next | Up | Top |

14.1 How efficient is DJGPP-generated code?

Q: How does DJGPP compare with other DOS-based C compilers in terms of efficiency of generated code?

Q: Won't my program run much slower when compiled by DJGPP, due to all those CPU cycles wasted in switches between protected and real mode?


A: The quality of code generated by GCC with optimization turned on (-O2 switch to the compiler) is generally at least as good as what you will get from top commercial products, like Borland, Microsoft and Watcom. Mode switches indeed have a certain performance hit, but in most programs it is negligibly small, because only DOS and BIOS services require such a switch, and most programs spend most of their time doing other things.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright ⌐ 1998   by Eli Zaretskii     Updated Sep 1998  

Powered by Apache!

You can help support this site by visiting the advertisers that sponsor it! (only once each, though)