Re:Zapcc – A faster C++ compiler
by cmrdporcupine on Saturday November 26, 2016 @02:43PM
(#13045486)
Not at all open source, but Intel's ICC is free.
[ Parent
| on HN ]
Re:Zapcc – A faster C++ compiler
by greglindahl on Saturday November 26, 2016 @04:30PM
(#13045975)
Not open source, and actually it's not free, either. People sure think it is, but that's only for students at degree-granting institutions, and people working on open-source code who are not being paid.
Academic researchers can get a free library license, but not a compiler license.
Ditto Digital Mars C++ (nee Symantec C++, nee Zortech C++). But as I recall, like most other "alternative" C++ compilers, it's also stuck in the C++03 land.
Re:Zapcc – A faster C++ compiler
by WalterBright on Saturday November 26, 2016 @05:18PM
(#13046233)
That's because I work on D now :-)
No worries. :)
DMC++ is still awesome, because it's the only ISO C++ compiler out there that can target any kind of DOS platform and binary format, from 16-bit .COM files (!!!) to 32-bit DOS extender.
Which happens to have really great compile times, in spite of using even more metaprogramming than C++. Thank you for your work!
I was pretty skeptical of D for a while, mainly because of the GC, but I've started to take a liking to it. It's a very useful tool.
Re:Zapcc – A faster C++ compiler
by WalterBright on Saturday November 26, 2016 @09:19PM
(#13047327)
I've been slowly converting my older C/C++ code still in use into D. Next up is the dmd back end!
Re:Zapcc – A faster C++ compiler
by wichtounet on Saturday November 26, 2016 @05:30PM
(#13046308)
It's not free for commercial use. And it's probably the slowest compiler there is although the generated assembly is generally of incredible quality.
Re:Zapcc – A faster C++ compiler
by colejohnson66 on Saturday November 26, 2016 @05:41PM
(#13046362)
It's slow because of the multiple times it has to compile and optimize for all the different processor revisions.
Re:Zapcc – A faster C++ compiler
by greglindahl on Saturday November 26, 2016 @06:59PM
(#13046781)
Does it? Last I looked it did 1 by default, 2 if you ask nicely.
The main reason it's slow is that it does a lot of analysis, even at -O1.
Re:Zapcc – A faster C++ compiler
by colejohnson66 on Sunday November 27, 2016 @01:47AM
(#13048071)
It was my understanding that the advantage of Intel's compiler is that it would optimize for the strengths available on newer processors while still allowing it to work on older processors (for example, using AVX instructions if available and a slower branch if not) [aka, the "CPU dispatcher"]. Agner wrote about it "crippling" AMD processors because they didn't say they were "GenuineIntel" back in 2009.[0]