[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Benefits of Clang over CC or GCC?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 75
Thread images: 5

Benefits of Clang over CC or GCC?
>>
>>58757859
better debugging
MUCH better error reporting
better compilation times
better speed optimizations

GCC is deprecated at this point.
>>
cc is just a symlink to gcc you cunt
>>
>>58757885
Thanks
>>
>>58757888
arch user detected
>>
>>58757859
none
>>
>>58757961
>something something detected
You're disgusting, please end your life already.
>>
>>58758002
>t. RMS
>>
>>58758011
no, and clang is still shit
>>
>>58758010
virgin detected
>>
>>58758020
>[citation needed]
>>
>>58758026
>implying
>>
>>58758037
So you don't have any argument to claim Clang is shit? go away freetard.
>>
>>58758050
same, give proofs idiot
>>
>>58757859
Better compile messages and debugging.
Can act as intelligent code completion for IDE and editors.

>>58757885
GCC compiles about as fast and optimizes as well or better still.
>>
nothing yet? then clang is shit
>>
>>58758069
Seems like you tried to make an argument here:
>>58758002
Still can't make it, poor deluded freetard.
>>
>>58757859
It can't compile harmful software such as Linux kernel.
>>
>>58758099
There are patches for Linux that replace the usage of GCC-specific features and allow it to be compiled by clang
>>
as I imagine, this is a troll thread
>>
Doesn't implement all of the GNU c extensions.
>>
>>58758110
>waaa people can't use clang, RMS said we sould use GCC!
>>
>>58758082
>GCC compiles about as fast and optimizes as well or better still.
nigga pls.

http://news.mit.edu/2017/optimizing-code-compiler-parallel-programs-0130
>>
>>58758156
Meaning?
>>
>not using Intel C/C++ compiler
>>
>>58758204
>falling for jewish tricks
>>
>>58757859
It can be used to create useful software

https://www.youtube.com/watch?v=UtwaK-s9QRI
>>
>>58757859
How does one even use this shit anyway? I tried running the --help flag and it gave me fucking sanskrit.

At least gcc has clear instructions.
>>
msvc
>>
>>58759360
i'm pretty sure clang has exactly the same flags as GCC
>>
>>58759462
I think i tried the windows version once and it was a cluster fuck.
>>
>>58758236
AHHAHAHAHAH...

Stallman got BTFO!

AHAHAHAHAH

i think this is the full talk.

https://www.youtube.com/watch?v=NURiiQatBXA
>>
File: XMOS[1].jpg (30KB, 375x250px) Image search: [Google]
XMOS[1].jpg
30KB, 375x250px
>>58757859
Support for xcore
>>
>>58758236
>those people in the comments defending awful design
fuck freetards
>>
>>58759624
He even admits in the video that it works like shit on windows. No wonder i had so many problems with it.

Let me know when i can at least cross compile on the ubuntu subsystem with it.
>>
>>58757859
faster compiles, tends to implement new language standards quicker, includes a full static analyzer, modular so it can be embedded more easily, more advanced instrumentation libraries, and non-viral license.

gcc has mostly caught up in descriptive error messages, its code optimization is still slightly better, and there are a few gcc-specific extensions that clang has not implemented which makes some software dependent on gcc.
>>
>>58759732
give it some time, it's not quite as mature as GCC on windows

even then i always thought GCC on windows sucked, i can't stand using windows for any kind of development
>>
CC is not a compiler, but a symlink to the system C compiler. It could point to GCC, Clang, ICC, or some other compiler set by the user.

Compared to GCC, you'll probably get faster compiles, but not necessarily faster binaries.
>>
>>58759732
That's from 2013....

I think that's before they even offered windows builds
>>
>>58759748
I just use mingw on the ubuntu subsystem to cross compile. Works for me.
>>
Every time you use clang instead of gcc, richard stallman cries. ;)
>>
>>58760012
wtf I love clang now
>>
>>58760012
Good. You should be using Clang over that garbage fucking heap anyway.

Better compile times. Actual compilation is more of a bottleneck than you think. How about syntax checking and output? Yep, much better. Ask me about it. Warnings in GCC are so fucking bizarre in comparison, I don't know which way is up. Ask me about it. Im willing to go to fucking war over this.

When Im in charge of Compiler development at Intel, the trifecta of compilers still run circles around that shit heap.
>>
>>58757859
There is none, at least for now. Clang produces under-performant software. The (((ONLY))) reason people use it is because they are vegan hipsters that want to look cool by avoiding GNU.

Clang is no where near as matured as GCC.

>>58758134
>>58758178
>>58759425 (Samefag)
>>58759624
>>58759709
Caught a live one. See how angry a hipster gets? If Clang is so "superior" you would not have to desperately samefag as much to ((defend)) it.


Furthermore CC is not a compiler. It links to your default C compiler so it may either be GCC or Clang.
>>
LLVM/clang made C++ great again
>>
>>58757859
If it is not GPL is fucking dogshit.
Also:
> Its contributors include Apple, Microsoft, Google, ARM, Sony, Intel and Advanced Micro Devices (AMD). It is open-source software,[6] with source code released under the University of Illinois/NCSA License, a permissive free software licence.
>https://en.wikipedia.org/wiki/Clang
>>
>>58758236
I don't see what's wrong with this.
Some entitled faggot wants to steal code from an open source project to build cancerous closed source shit (e.g. osx or whatever the fuck they call it now) and got told to kindly fuck off.
>>
>>58757888
What kind of shit distro do you use where cc isn't Plan9's C compiler?
>>
>>58757859
>Clang
LLVM has a better front-end / back-end system and is much more simpler to extend than GCC
>>
Is it working on windows? Last time i checked it wasnt easy like gcc to make it work
>>
>>58762513
You can bet your bottom dollar it works on Windows. Quite well actually.
>>
>better compile times
Irrelevant when GCC's output is much better optimized. Unless you spend more time compiling your program than actually using, at which point you and your software suck.

>better error messages
Irrelevant, unless you're that much of an inexperienced programmer that you can't make sense of GCC's warnings. That's why Clang is the most popular compiler in the classroom, but GCC is the most popular compiler in actual production.
>>
>>58762513
Is it easy to setup like gcc? I know you can use it with VS
>>
>>58762584
>Visual Studio
>allowing anything but MSVC
wut

Do you mean Visual Studio Code?
>>
>>58762590
No, visual studio, you can setup other compilers and it uses clang for cross compiling
>>
>>58762600
Wow, Microsoft really changed after Ballmer left.
>>
>>58757859
GCC is fine you fucking sperg
What about you actually code instead of finding excuses to postpone working?
>>
GCC binaries are faster than Clang's.
>>
>>58757859
ayy don't give a shit. I use what is required by the code which is gcc 100% of the time for me.
>>
cuck license
>>
>itt: people who haven't seen a single recent benchmark between these 2 and talk shit like they have
>>
>>58762284
/g/ is pajeet, they like buzz words
>>
>>58758086
yet you don't post why is shit
>>
>>58762570
you sure are good at pulling shit out of your ass
>>
>>58762693
Proof?
>>
>>58762865
Or chinks. Either way their usage betrays them, no matter how short a post they make they will find a way to fuck it up.
>>
File: untitled.png (8KB, 544x83px) Image search: [Google]
untitled.png
8KB, 544x83px
>>58757888
what the everloving fuck, nigger
>>
File: IMG_8879.png (301KB, 393x395px) Image search: [Google]
IMG_8879.png
301KB, 393x395px
>>58765241
>your system is his system
Wow you burned him!
>>
>>58757859
GCC can compile linux kernel
Clang doesnt't (Cantlang anyone?)
>>
>>58765330
>cc is just a symlink to gcc you cunt
>no it fucking isn't
>your system is his system

That's precisely the point, you illiterate fuckwad
>>
>>58765361
>GCC can compile linux kernel
>Clang doesnt't
Read the fucking thread, sodomite.
goto: >>58758108
>There are patches for Linux that replace the usage of GCC-specific features and allow it to be compiled by clang
>>
>>58765378
and what use are those patches for me if the produced binary will be slower than that made by gcc?
>>
>>58765378
Only for specific architectures and with specific kernel configurations.

http://llvm.linuxfoundation.org/index.php/Main_Page
>>
>>58765392
>>58765403
No niggers. I will not chase the goalposts. You said Linux can't be compiled with Clang, and it can. Fuck you.
>>
>>58765420
>look, clang manages to compile Linux for my SPARC architecture as long as I disable preemption
It's a long way yet.

I posted the link, I'm genuinely glad that there is progress in making Clang compile Linux because it's objectively a better compiler and a healthier community, but there's a long way left.
Thread posts: 75
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.