3 ms·
A compiler should do this for you. Unless it outputs source code, it can't.
by userbinator 4y ago
A compiler should do this for you.
Unless it outputs source code, it can't.
- jacquesm 4y agoFrom what I got the context he more or less implied a compiler due to the language used (C++). I know that's now how C++ started but nowadays I think you can assume that when people discuss ways to program C++ it is by using a compiler rather than a code generator.
- mtrower 4y agoIt looks to me like there's some confusion here; Carmack is talking about inlining for purposes of source code management; compilers inline for purposes of performance optimiziation. The two seem to be getting conflated in this thread. So GP points out that, no, unless your compiler is outputting source code (therefore changing what you see as a programmer), having it inline the function does not accomplish the goal at all.