Compiler

Discussion in 'General Computing' started by Maverick1, May 12, 2013.

  1. Maverick1

    Maverick1 New Member

    Messages:
    24
    Likes Received:
    5
    Trophy Points:
    3
    Which is the best C compiler in Linux?

    ryanvade and DevynCJohnson like this.
  2. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,214
    Likes Received:
    1,019
    Trophy Points:
    113
    gcc (GNU C Compiler or GNU Compiler Collection) is the best C compiler for Linux.
    ryanvade likes this.
  3. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,209
    Likes Received:
    406
    Trophy Points:
    83
    GNU C compiler is the best for Linux. But if you feel the need for something different, the Intel C compiler is free for Linux users. You just have to setup an account, download, and install it.
    DevynCJohnson likes this.
  4. KenJackson

    KenJackson Active Member

    Messages:
    129
    Likes Received:
    28
    Trophy Points:
    28
    GCC is the de facto standard compiler for Linux and for much of the world of free software. And the fact that it can be compiled on essentially all practical platforms and as a cross compiler, makes it even more valuable and desirable. It's the compiler I always use when I have a choice.

    Intel's icc has beaten gcc in independent benchmark results, at least in some tests.

    Clang seems to be an up and coming phenomenon.

    pcc has roots dating way back to the early days of C and is still available, if you're nostalgic.
    DevynCJohnson likes this.
  5. hdg89

    hdg89 New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    hi
    i need some help.
    I am using following command for compilation
    gcc helo.c -o helo -lopencl -I$M2S_ROOT/runtime/include -L/usr/local/lib/ -static

    but getting errors:
    helo.c:(.text+0x3e6): undefined reference to `clReleaseCommandQueue'
    helo.c:(.text+0x3f2): undefined reference to `clReleaseContext'
    collect2: ld returned 1 exit status
  6. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,209
    Likes Received:
    406
    Trophy Points:
    83
    No hijacking threads. Please start your own thread.
    Basic forum courtesy: Rules to follow for all forum users
    # 2

Share This Page