Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Everyone knows about the legendary GCC compiler for our favorite UNIX clones, but are there any other C compilers availible? Just curious, since i havn't heard of any. BTW - ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User GNU_man's Avatar
    Join Date
    Apr 2005
    Location
    Canada, eh
    Posts
    284

    C compilers for Linux 'n friends


    Everyone knows about the legendary GCC compiler for our favorite UNIX clones, but are there any other C compilers availible? Just curious, since i havn't heard of any.

    BTW - I have nothing against GCC it's a rock-solid complier for sure. The only things i don't like are _slow ass_ compile times, bit of a memory hog, and the AT&T syntax of GAS is befuddling to read. Wish i could output Intel syntax.
    PTL x10 Hallelujah!
    AMD Athlon XP 2600+ 512MB RAM Dual 80G WD HD 8MB Cache (1 WinXP Home, 1 CentOS 4.2) GeForce Ti4200 128MB SB Live! 5.1
    Registered Linux user #391521

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Posts
    575
    The only things i don't like are _slow ass_ compile times, bit of a memory hog...
    What are you comparing it with ?
    ...and the AT&T syntax of GAS is befuddling to read. Wish i could output Intel syntax.
    Are the 2 syntaxes very different ? Perhaps you could write a programme
    which would transform one into the other.Would it be more complicated
    than a command for command translation ?

  3. #3
    Linux User GNU_man's Avatar
    Join Date
    Apr 2005
    Location
    Canada, eh
    Posts
    284
    What are you comparing it with ?
    OpenWatcom, Borland, Digital Mars...

    Perhaps you could write a programme
    which would transform one into the other.
    an interesting thought... i wonder if someone has already done that?

    So do you know of any other compilers? or did you just reply because i made a criticism of GCC?

    >whew!< I knew this would be a touchy subject...
    PTL x10 Hallelujah!
    AMD Athlon XP 2600+ 512MB RAM Dual 80G WD HD 8MB Cache (1 WinXP Home, 1 CentOS 4.2) GeForce Ti4200 128MB SB Live! 5.1
    Registered Linux user #391521

  4. #4
    Linux Enthusiast
    Join Date
    Jan 2005
    Posts
    575
    I don't have a problem with anyone criticizing gcc or anything else.
    I was just trying to understand the basis of your criticism.I would
    be asking similar questions with regards to most criticisms unless
    the subject was completely indifferent to me.You said you didn't know
    any other compilers so I was curious what you were comparing gcc against.

    Anyway if you google for "Linux compilers" you'see a few results.
    But I haven't used any of them and the ones I've seen do not seem to
    be open source.

    When you say "and friends" do you mean other Unix like operating
    systems ?

  5. #5
    Linux User GNU_man's Avatar
    Join Date
    Apr 2005
    Location
    Canada, eh
    Posts
    284
    google for "Linux compilers"
    Duh! I forgot the obvious

    When you say "and friends" do you mean other Unix like operating
    systems ?
    Yup, you know BSD, Linux, Solaris etc.. i'm just reading up on it now, thanks!
    PTL x10 Hallelujah!
    AMD Athlon XP 2600+ 512MB RAM Dual 80G WD HD 8MB Cache (1 WinXP Home, 1 CentOS 4.2) GeForce Ti4200 128MB SB Live! 5.1
    Registered Linux user #391521

  6. #6
    Linux Enthusiast
    Join Date
    Jan 2005
    Posts
    575
    I think you can get the Sun compiler for free if you're not going to use it for
    commercial purposes.Check their website.

    I believe there is also a BSD C compiler.I did a bit of googling and I've
    seen references to it but nowhere to get the actual compiler.If that's
    possible at all.

    Let us know the results of your search ; this is an interesting topic.

  7. #7
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    Ecc, tcc, and underc are three open source compilers that come to mind, but they might not be quite what you are looking for. BSD has gcc, not a BSD compiler.

  8. #8
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    I hope you're comparing compile speeds on hardware with similar specs.

  9. #9
    Linux Enthusiast
    Join Date
    Jan 2005
    Posts
    575
    But it's more complicated than that isn't it ? You need to compile the same
    programme on the same hardware with the same system load and use similar
    compiler options.The last part is the trickiest since there is no direct translation
    for the optimizing options for example from one compiler to the next.

    I also don't know how meaningful is to compare compilers on different operating
    systems.

  10. #10
    Linux Enthusiast
    Join Date
    Jan 2005
    Posts
    575
    Quote Originally Posted by valan
    BSD has gcc, not a BSD compiler.
    Perhaps it used to have its own compiler ? As I've said I've seen references
    to it.Using Google you can find several more.
    http://www.tuhs.org/Archive/4BSD/Dis...cb-fixes/index
    link

    (The 2nd link is a Google cache so it won't last forever)
    In the above search for the word compiler.As you will see a 4.2 (or 4.3) BSD C
    compiler is mentioned.But I haven't been able to found out anything more
    about it.Anyone else care to play detective ?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •