Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. looking for a faster compiler for compiling c++ code under a Cygwin into .exe used run under Windows

looking for a faster compiler for compiling c++ code under a Cygwin into .exe used run under Windows

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
c++linuxperformancehelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Seraph_summer
    wrote on last edited by
    #1

    I have written c/c++ code under Cygwin shell of Unix, but the code is required to compiled into a .exe, which will be used under Windows operating system, I found the speed is a bout ten times slower run in Windows than run in Unix. someone say this is mainly due to compiler problem, anyone can suggest one good compiler can do this but with faster speed? thanks.

    J I 2 Replies Last reply
    0
    • S Seraph_summer

      I have written c/c++ code under Cygwin shell of Unix, but the code is required to compiled into a .exe, which will be used under Windows operating system, I found the speed is a bout ten times slower run in Windows than run in Unix. someone say this is mainly due to compiler problem, anyone can suggest one good compiler can do this but with faster speed? thanks.

      J Offline
      J Offline
      Jimmanuel
      wrote on last edited by
      #2

      Seraph_summer wrote:

      I have written c/c++ code under Cygwin shell of Unix

      I don't know what you mean by that - Cygwin runs on Windows not Unix, and it's a Linux emulator not Unix. If you want to compile simple C++ programs on Windows there's plenty of free compilers out there -> google[^]

      :Badger:

      I 1 Reply Last reply
      0
      • J Jimmanuel

        Seraph_summer wrote:

        I have written c/c++ code under Cygwin shell of Unix

        I don't know what you mean by that - Cygwin runs on Windows not Unix, and it's a Linux emulator not Unix. If you want to compile simple C++ programs on Windows there's plenty of free compilers out there -> google[^]

        :Badger:

        I Offline
        I Offline
        Indrora
        wrote on last edited by
        #3

        Cygwin is *not* an emulator. What Cygwin is is a library that gets linked in agaisnt a big UNIX<->Win32 interface.

        ---- Morgan Gangwere Lead programmer, Unknown Software "Pinky, are you thinking what im thinking?" "I Dunno brain, how many licks DOES it take to get to the tootsie roll center of a tootsie pop?" "You want me to calculate that? or should we take over the world?" "ooh! OooooOOOooH! lets find out!"

        1 Reply Last reply
        0
        • S Seraph_summer

          I have written c/c++ code under Cygwin shell of Unix, but the code is required to compiled into a .exe, which will be used under Windows operating system, I found the speed is a bout ten times slower run in Windows than run in Unix. someone say this is mainly due to compiler problem, anyone can suggest one good compiler can do this but with faster speed? thanks.

          I Offline
          I Offline
          Indrora
          wrote on last edited by
          #4

          Try compiling either using -w0 or some of of the other G++ optimization fixes :)

          ---- Morgan Gangwere Lead programmer, Unknown Software "Pinky, are you thinking what im thinking?" "I Dunno brain, how many licks DOES it take to get to the tootsie roll center of a tootsie pop?" "You want me to calculate that? or should we take over the world?" "ooh! OooooOOOooH! lets find out!"

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups