C/C++ compiler optimisations: should I prefer creating new variables, re-using existing ones, or avoiding variables altogether?

前端 未结 0 566
青春惊慌失措
青春惊慌失措 2020-12-19 18:34

This is something I\'ve always wondered: is it easier for the compiler to optimise functions where existing variables are re-used, where new (ideally const) int

相关标签:
回答
  • 消灭零回复
提交回复
热议问题