2 ms·
"Threaded code" is not quite the same as bytecode. Usually it's a sequence of subroutine addresses that are then dispatched to, a bit similar to how vtables ar
by zozbot234 4y ago
"Threaded code" is not quite the same as bytecode. Usually it's a sequence of subroutine addresses that are then dispatched to, a bit similar to how vtables are implemented in high-level languages. Other implementations are possible, but tokenized systems ala bytecode are only one of many possibilities, and not usually the most common. https://en.wikipedia.org/wiki/Threaded_code https://en.wikipedia.org/wiki/Threaded_code
- benhoyt 4y agoYep, you're right, thanks for the clarification. I was simplifying (never a good idea for a highly technical audience :-) because most people haven't heard of threaded code but have heard of bytecode. My Third compiler used direct threading.