What C51 needs really bad is ...

Inline assembly!

asm {
;you assembly code goes here.
}

My version is so out of date, tho, it may already support it and I don't even know.

More questions in this forum