PDR: Docs: Useful Compiler Flags

Go up to the main documents page (md)

This page is intended to summarize the various compiler flags that we will be learning throughout the semester. There are hundreds (if not thousands!) of such options; we’ll only be dealing with a few of them.

These flags are for the clang compiler, but the are mostly the same for the g++ compiler (the only difference, of the ones listed below, are the flags to generate the particualr assembly flavor).

If you want to see all of the clang options, enter man clang at the Linux prompt. It’s quite a list!