r/programming • • Feb 04 '15

Compilers - What Every Programmer Should Know About Compiler Optimizations

https://msdn.microsoft.com/en-us/magazine/dn904673.aspx
32 Upvotes

14 comments sorted by

4

u/davydog187 Feb 04 '15

I want to read this but the format of the text is unbearable :(

16

u/fb39ca4 Feb 04 '15

Probably been optimized too much.

3

u/gmiller123456 Feb 04 '15

Not sure what you're seeing, it looks OK to me.

2

u/thalesmello Feb 04 '15

What every writer should know about text formatting

3

u/sigma914 Feb 04 '15

Doesn't look too bad to me, sure the text is a bit wide, but it's better than most pages.

2

u/Poltras Feb 04 '15

It makes it impossible to read on mobile.

-1

u/KeyholeSoftware Feb 04 '15

Thanks for posting this!

-2

u/[deleted] Feb 05 '15

Thanks for baiting this!

-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

u/DarkeoX Feb 04 '15

Not signed into any MS Account, was able to read it perfectly here.

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

u/[deleted] Feb 04 '15

that they get complicated ?

0

u/[deleted] 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++