Coding Practices which enable the compiler/optimizer to make a faster program

后端 未结 30 1908
一个人的身影
一个人的身影 2020-12-02 03:24

Many years ago, C compilers were not particularly smart. As a workaround K&R invented the register keyword, to hint to the compiler, that maybe it woul

30条回答
  •  旧巷少年郎
    2020-12-02 04:05

    For performance, focus first on writing maintenable code - componentized, loosely coupled, etc, so when you have to isolate a part either to rewrite, optimize or simply profile, you can do it without much effort.

    Optimizer will help your program's performance marginally.

提交回复
热议问题