This kind of thing always needs some arbitrary line drawing.
Even if there no external libraries and only pure machine code, that machine code still runs in an environment defined by hardware components, and those hardware components have a lot of thought and effort behind them.
At what level is it no longer cheating?