Skip to the content.

Week 7: Compiler Optimizations

đź”— Pre-Class Learning Material

The first video is a broad discussion of things the compiler tries to optimize automatically and ways to write code utilizing this.

The second gives specific examples of some compiler switches and what they do.

(Just the portion from 7:00 - 33:00. The rest of the video shows some interesting benchmarking examples, but isn’t necessary to get the general idea of the talk.)

Found the following in perusing through some compiler optimization settings, thought it might also be helpful. By godbolt no less.