Inlining Code
08/01/2020
This post is the first part of a 2 posts long series, discussing code inlining in relation to DCE and recursive methods.
Introduction
Code Inline: call of the method at the callsite is replaced with the invoked method body.
DCE: Modern compilers are smart enough to detect code segments, that has no effects, hence they can be removed.
I will walk to through two examples showing these compiler features in action in regards to exception handling and recursive methods. At this point, I expect the reader to have a good understanding on both of the above compiler features.