Abstracted function compilation