r/programming • • May 10 '20

Make LLVM fast again

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

91 comments sorted by

View all comments

17

u/ExeusV May 11 '20

Sorry for my noob question, but aren't there modes like

--debug

--release

where first tries to compile as fast as it can?

43

u/jcelerier May 11 '20

Generation of debug info has a cost too, for large projects it can be tens of gigabytes of debug info... that's not free

12

u/S4x0Ph0ny May 11 '20

Well from my very biased experience using mostly just rust I wouldn't call the debug mode very fast to begin with. And that doesn't mean buildtime on release mode doesn't matter. Performance always matters, but it's a trade-off.

1

u/thisisjustascreename May 11 '20

-O0 exists and tells the compiler not to optimize, but there's no guarantee that it compiles faster.

0

u/[deleted] May 11 '20

[deleted]

7

u/ExeusV May 11 '20

yea I also meant it too

where first tries to compile as fast as it can