What kind of functions do you have in mind ?
Totally. If you look into those libraries you will find that the timing is so 'tight' that they use bit-bang methods in assembler, and use different code for different clock speed and boards. If your idea could be made to work, it would probably exist already.