dimanche 27 décembre 2020

What types of compiler optimizations are comonly used in C++? [closed]

I am trying to get high lever overview of optimizations used in C++ language. According to wikipedia article, compilers use these optimizations:

  1. Peephole optimizations
  2. Local optimizations
  3. Global optimizations
  4. Loop optimizations
  5. Prescient store optimizations
  6. Interprocedural, whole-program or link-time optimization
  7. Machine code optimization and object code optimizer

It it completely new topic for me. Till now I was thinking that optimization is only done during compilation. I didn't expect that is also done during linking or even after...

Could you tell me if C++ language supports all of mentioned optimizations?

EDIT: That's right, mentioned wiki article was not language specific, so purpose of that question was to get knowledge if these optimizations are commonly used and supported by C++ compilers.

There is a lot of detailed manuals which describes each compiler flag, but none of them provides general overview similar to mentioned wiki article, which will be C++ specific.

Aucun commentaire:

Enregistrer un commentaire