You can't know the size of a function before compilation, because the size could vary depending on the compiler settings. For example, if you set the compiler to optimize for size, the function could be smaller than if the compiler is set to optimize for speed.