r/cpp • • May 10 '20

Make LLVM fast again

https://nikic.github.io/2020/05/10/Make-LLVM-fast-again.html
150 Upvotes

88 comments sorted by

View all comments

Show parent comments

10

u/PoliteCanadian May 10 '20

How is running on Windows killing its performance? It is a load of compute sandwiched between some basic file IO. And it is a compiler so I would assume it is self hosting and generating basically the same code...

1

u/bumblebritches57 Ocassionally Clang May 11 '20

There's a lot of workarounds LLVM has to do to support windows.

the biggest one is they don't use shared libraries on windows, and i'm not entirely sure why either, everything has to be compiled as static libraries and linked into massive binaries tho.

1

u/kalmoc May 11 '20

Don't know why llvm can't use dlls on windows, but shouldn't building everything into a single exec - if anything - improve performance of the binary?

1

u/bumblebritches57 Ocassionally Clang May 12 '20

I run into all kinds of strange issues when i use Clang when rarely use windows.

It doesn’t support OpenMP, and i half remember it having a problem with link time code generation too.

It’s just wonky.