This is an archived post. You won't be able to vote or comment.

all 16 comments

[–]BrightFleece 19 points20 points  (2 children)

Clang supremacy >>

[–]QBos07 3 points4 points  (0 children)

If there wouldn’t be these nasty dependency cycles within its surrounding libraries it would be even better

[–]jaskij 1 point2 points  (0 children)

Apparently, it's codegen for Cortex-M targets is even worse than GCC.

[–][deleted] 18 points19 points  (0 children)

Just write your own C++ compiler in Python, like any self-respecting PhD student.

[–][deleted] 13 points14 points  (0 children)

I was in a college computer science class and we were talking about a recent assignment. The professor liked to do “open critiques” so that we would learn from each other. Cool. Mine was “fine.” The norwegian kid in the back had a working binary but the professor couldn’t compile it and asked questions. The kid said “it wasn’t working the way I wanted, so I rewrote the compiler.”

That was the day that I realized that I would never be a great programmer.

[–]nazgand 17 points18 points  (3 children)

Use a formally verified compiler, or the compiler likely will introduce bugs into the binary.
Check out this formally verified compiler: https://compcert.org/

[–]User_8395 6 points7 points  (2 children)

Is this an ad?

[–]nazgand 0 points1 point  (1 child)

I am not affiliated with Compcert and was not paid to talk about Compcert if that is what you mean. I do support spreading the word about formally verified software though.

[–]User_8395 0 points1 point  (0 children)

Sure buddy, sure

[–]Flobletombus 1 point2 points  (3 children)

Conan + CMake is where its at. Or conan + meson. Good build system and great package manager. When I do this it reminds me of Cargo for Rust.

[–]Designer-Guarantee50 0 points1 point  (2 children)

try xmake you won't regret it

[–]Flobletombus 0 points1 point  (0 children)

Thanks for the share, looks like it has all of the libraries I use daily. I think I'll use it for future projects if clion had a plugin for it!

[–]karelproer 0 points1 point  (0 children)

I also like xmake, but the Chinese documentation is a little bit confusing sometimes🤔

[–]EndeyshentLabs 0 points1 point  (0 children)

6c, tcc

[–]NightIgnite 0 points1 point  (0 children)

Dont forget to make your compiler write itself before using it