Will the compiler only compile code that can get executed?

后端 未结 6 1985
梦谈多话
梦谈多话 2020-12-15 03:37

I have a class library and am using only part of it. Is there a need to delete what isn\'t being used in order to shrink the size of the created code (in release configurati

6条回答
  •  眼角桃花
    2020-12-15 03:42

    Determining all and only dead code is (if one makes the idealization that one has a "math world" like language) recursively undecidable, in most languages. (A few rare ones like the Blaise language are decidable.)

提交回复
热议问题