I'm not sure what you're getting at here, because code always builds on top of a pre-existing system. Besides another layer of abstraction, what's the difference between making use of a library in C code, or calling interrupts in assembly. You still at minimum make use of OS code and the hardware drivers.