Re:Writing a register based VM in less than 125 lines of C code
by bluetomcat on Thursday December 09, 2021 @04:11AM
(#29495334)
Since this code is dealing mostly with instruction mnemonics (br, jsr, lea), it makes sense for the rest of the code to comply with this style. The code has an inherently repetitive structure (implementing various opcodes) and therefore shorter global names contribute for its compactness. Mentioning "register_file" 30 times rather than "reg" wouldn't make it clearer when it is obvious that the short name serves the same purpose.
[ Parent
| on HN ]
There are no comments on this comment yet.