Menu

Dev-C++ Compiler is SO Slow

2006-12-09
2012-09-26
  • Nobody/Anonymous

    Ummm... I have Dev-C++ 4.9.9.2 and when I press F9 (Compile and Run) it takes like 5 seconds to run code that has what, 5 lines? It never used to do this and I don't know what or IF I've done anything to make it go this slow... it's really turning me off Dev but there's no other free program that works as well as it... please help. :(

     
    • Wayne Keen

      Wayne Keen - 2006-12-14

      I remember earlier in the GCC family, there being a lot of complaints over on the MAC side of the house from people having to do overnight builds that used to take an hour or two - now at least they were pulling their hair out for a good reason. ;)

      Wayne

       
    • pronecracker

      pronecracker - 2006-12-09

      weird, it's certainly not just a slow compiler because here it is less than a second.

       
    • Nobody/Anonymous

      At first, Dev-C++ is not a compiler, but a workbench. Any other "free program" with a compiler inside, be probably based on the GNU g++ compiler, and will be equally slow.

      On the other hand, I see that you are looking for a good and quick "free program". In these cases, in my country, we say that you are looking for a big whiting that weigh a little :-))

      Newbie.

       
    • Anonymous

      Anonymous - 2006-12-09

      You must be really busy if you are worrying about a 5 second build being too long!

      What happens with trivial code is not really an issue, you can only meaningfully measure compilation time by using a significant amount of code. When compiling just 5 lines of code, most of the time will be spent loading the compiler and accessing the disk rather than actually compiling code, which probably takes a few milliseconds. Therefore it is more likely to be an issue with the OS or other processes running concurrently. Anti-virus and adware scanners (and viruses and adware for that matter) for example can slow down disk bound processes like compilation significantly.

      I would suggest that this variation is entirely normal, but that it does not mean that large builds will also take 5 times longer - they may only take 4 seconds longer - i.e. it may be a fixed overhead.

      >> but there's no other free program that works as well
      You are kidding right!? MSVC++ 2005 Express Edition is free. I'm saying no more because some take exception to my even mentioning it. I'll leave it for you to consider whether it works 'as well' (or better), but it has a debugger that works ;-). If you prefer Dev-C++ as an IDE, try wxDev-C++, it works with VC++ 2005 as well as MinGW so you can choose. However if you want to compare built times, use a more significant ammount of code to get a fair comparison.

      Clifford

       
    • Nobody/Anonymous

      Clifford:
      Do you use VC++ 05 instead of Dev now? Just out of interest, if so/not why?

      Anon

       
      • Anonymous

        Anonymous - 2006-12-10

        Almost all the code I write professionally is embedded systems code for ARM9 using a GNU GCC cross-compiler. Any PC based programming I do is primarily tool support for embedded systems work, I generally now use VC++ for that. I previously used Dev-C++/MinGW for prototyping code for code compatability with the embedded target compiler, but VC++ 2005 has much improved ISO compliance, so I now generally use that. Time is money and I can't be messing around with a weak debugger, and sometimes I even need to do GUI work.

        My primary use of Dev-C++ is now just supporting this forum. I am not trying to convert anyone, but believe everyone should be aware of the options, and that the tool should never hinder progress. I think wxDev-C++ will be a valuable tool in time, plain Dev-C++ however now has little to offer over any competition apart from its simplicity (and DevPaks are pretty cool - when they work!).

        Clifford

         
    • Nobody/Anonymous

      Ok... so, so far I've learnt that 5 seconds is normal? Or that I should shut down my anti-virus while I'm coding. I have VS2005 but... idk... I've never really liked it. Mainly because each time you wanna make a new file you gotta go through heaps of crap. But it's debugger does work yes which is something I noticed with Dev... it's debugger is all weird. Hmm... still dunno what to do but I'll try turning off my anti-virus.

       
    • Nobody/Anonymous

      I have found just turning on 'Use heuristics to compile faster' does the trick, I have a 1.73Ghz Athlon XP and my projects compile in less than a second. That is if you don't already have this enabled...

       
    • Anonymous

      Anonymous - 2006-12-12

      I would not recommend switching off the anti-virus, I think I suggested that you simply put up with 5 seconds over 1. It only becomes an issue if on a large project it takes 5 minutes rather than 1 minute, and I doubt whether it will scale in that way.

      Just relax and stop being so impatient. All the time you have spent waiting for the compiler is probably insignificant compared to the time you (and I) have spent talking about it on this forum. You'd have done 10 builds in the time it takes you to read this! Think about it; are your priorities appropriate? You are going to stress yourself into an early grave if you are concerened about 4 seconds!

       
    • Nobody/Anonymous

      He he he 5 seconds long? Just try to compile wxWidgets and you'll really see how long the MinGW compiler takes compared to VC++.

      Cheers,
      KC

       
    • Nobody/Anonymous

      tries heuristics

      considers vc++ :(

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.