I am trying to get high lever overview of optimizations used in C++ language. According to wikipedia article, compilers use these optimizations:
- Peephole optimizations
- Local optimizations
- Global optimizations
- Loop optimizations
- Prescient store optimizations
- Interprocedural, whole-program or link-time optimization
- 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