You are not logged in.

#1 2013-10-02 09:40:39

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Which should be better? gcc or tcc

Heya!

/me needs some advice.

I'm choosing a good C compiler.
I want a C compiler that is lightweight and compatible with many things (many libs, versions of C, etc).

I saw gcc depends on alot of dependencies (not lightweight), but perhaps it has many libs and can support many things (many versions of C).
I saw tcc depends on nothing, but perhaps it has fewer libs and support fewer things (not many versions of C).

I don't know,... what's good?


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#2 2013-10-02 09:50:21

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: Which should be better? gcc or tcc

Hello, guys, by the way: I don't care about speed, all I want is that:
* Has many C libs.
* Support many standards.
* Lightweight
* Compilation Quality (not quantity).

Thanks in advanced. smile


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#3 2013-10-02 10:07:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: Which should be better? gcc or tcc

gcc is the standard, tcc is focused on speed and simplicity.
I'm not sure how active is tcc's upstream: http://bellard.org/tcc/


I'd definitely go with gcc.

Offline

#4 2013-10-02 10:11:46

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: Which should be better? gcc or tcc

You have to take into account that smaller compiler does not automagically produce better binaries, read this. If you really don't want gcc for some reason, you should look into clang].


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#5 2013-10-02 11:48:52

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: Which should be better? gcc or tcc

yes thank you for your reply.

About Clang, It depends on gcc which includes gcc dependencies.
On wikipedia Clang states that it is a replacement for gnu c compiler. So it shouldnt depend on gcc.

If clang didnt depend on gcc.. it would have had less deps.

so whats going on?


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#6 2013-10-02 11:57:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: Which should be better? gcc or tcc

Offline

#7 2013-10-02 13:26:15

Awebb
Member
Registered: 2010-05-06
Posts: 4,319

Re: Which should be better? gcc or tcc

It's hard to give simple advice here, as you have all the information you need to decide. I'd try building a few complicated packages with both and see for myself. You could have gone for a goodle query like "gcc tcc comparison", then you would have found an article on phoronix, comparing many different compilers. The article is from 2011, but tendencies should have been visible back then.

Offline

#8 2013-10-02 14:41:55

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: Which should be better? gcc or tcc

ok I think id go for gcc thx.


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#9 2013-10-02 14:47:16

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 459
Website

Re: Which should be better? gcc or tcc

Not sure why you'd fight the gold standard of gcc. Alone, it isn't that "heavy". And it is one of the most used compilers of all time.


My tech blog: Daemon Dancing in the Dark
My Arch Linux blog: ArChatter

Offline

Board footer

Powered by FluxBB