Why doesn't compile functions like pinMod to required instructions !

Because just setting a register needs more understanding than calling it a function name that is more like English.