Menu

Compiling Stuff

2002-12-30
2012-09-26
  • Nobody/Anonymous

    I recently updated my old version of Dev-C++ do the latest, and I've been having some troubles with compiling. I've noticed that if a Project name has spaces in it, and has either a icon or version info associated with it, it will throw all sorts of

    [Build Error] [Warning] overriding commands for target `With'

    errors in the Makefile.win. Any clue why this is happening? I can fix it by re-naming projects without spaces, but I'm curious as why it happens.

    Also, I've noticed even with the basic Win32 *.exe is rather large (96K) even with full optimizations. Any clue what's going on?

     
    • Nobody/Anonymous

      Names with spaces in them are an issue for the pseudo-UNIX environment that is required for GCC to run. In the case of GCC, it uses the MingW environment.

      GCC-3.2 trades executable size (and to some degree compile time) for execution speed.  You can cut down on the size a bit by including -s as a compiler option.  Make sure you keep track of doing that, as I would recommend you remove it if you want to do deugging.

      Wayne

       
      • Nobody/Anonymous

        Thanks. The -s switch did chop size by one-half.

         
    • Nobody/Anonymous

      I believe, and I am sure someone will correct me if I am wrong, that it is equivalent to the "strip" command, which is why I mumbled something about taking it out if you are going to try to do some serious debugging.

      If you play around with some of the switches for the compiler, like -mcpu etc, for your particular processor, it can make a big difference in executable speed.  It sure did at work for the P4's there.  I think there is also stuff you can do for Athlon.

      I know, more than you wanted to know...

      Wayne

       

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.