added a hook for primitive function compilation, addition and compare-subtraction