#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Open source C compiler


    What is currently the best open source C compiler to pick up for game programming?

    I would like my games to be work on all desktop platforms.
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,996
    Rep Power
    481
    I'd vote for gcc, the gnu compiler collection. In part because it's the only one I know of, but also it's good. There was a time Hewlett Packard admitted that the gcc optimizer produced faster code than did their commercial compiler.
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. Contributing User

    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,117
    Rep Power
    1803
    Increasingly clang/LLVM is being used as an alternative to GCC.

    Working across development platforms has more to do with selecting appropriate cross-platform libraries than it does which compiler you use. So long as the libraries you choose are available or can be built for a specific compiler the compiler itself need not be cross-platform so long as compiler specific extensions are avoided or conditionally selected on build.
    Last edited by clifford; December 31st, 2012 at 04:52 AM.

IMN logo majestic logo threadwatch logo seochat tools logo