You are not logged in.
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
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.
milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/
Offline
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
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
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
Offline
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
ok I think id go for gcc thx.
milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/
Offline
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.
Offline