开发者

Concept of "dead code stripping" in compiler optimization options

开发者 https://www.devze.com 2023-02-03 23:45 出处:网络
When i gone through my compiler(starcore,scc) optimization options, i can see one \"dead code strippin开发者_Python百科g\".

When i gone through my compiler(starcore,scc) optimization options, i can see one "dead code strippin开发者_Python百科g".

What actually does when this option is enabled?

/Kanu


The resulting executable will not include any "dead" or unreachable code, because theres no point as it can never be executed.


Dead-code stripping is the process of removing unreferenced code from the executable file. If the code is unreferenced, it must not be used and therefore is not needed in the executable file. Removing dead code reduces the size of your executable and can help reduce paging.

0

精彩评论

暂无评论...
验证码 换一张
取 消