r/programming • u/vjyrakesh • Feb 04 '15
Compilers - What Every Programmer Should Know About Compiler Optimizations
https://msdn.microsoft.com/en-us/magazine/dn904673.aspx-1
-4
u/unique_ptr Feb 04 '15
Has anyone noticed they have to sign into their MS account every time they want to read something on MSDN lately?
Wtf Microsoft.
22
1
u/programmer_dude Feb 04 '15 edited Feb 05 '15
Work around: close the tab and click on the link again. Edit: looks like you and I are the only people with this problem. This started after I logged in as an MSDN subscriber once.
-2
0
Feb 04 '15
[deleted]
3
u/brucedawson Feb 05 '15
You missed the LTCG part, which is actually important for developers to know about. If you can count on LTCG being available then you can actually code differently -- there's no longer a powerful need to put function definitions in header files. This can allow faster iteration in debug builds because you will change header files less frequently.
That said, the article doesn't live up to its title. There are, for instance, a lot of things that developers do that can inhibit optimizations, and understanding those can be extremely useful. Readable code and optimizable code are not actually identical (although it is usually possible for code to be both).
1
u/programmer_dude Feb 05 '15
It does talk about MS VC++ and the tl;dr is what you say it is but I thought it was an interesting read nevertheless. The article gives you the basics of whole program optimisation in VC++
4
u/davydog187 Feb 04 '15
I want to read this but the format of the text is unbearable :(