In computer science, threaded code is a programming technique where the code has a form that essentially consists entirely of calls to subroutines. It is often used in compilers, which may generate code in that form or be implemented in that form themselves. The code may be processed by an interpreter or it may simply be a sequence of machine code call instructions.
Threaded code has better density than code generated by alternative generation techniques and by alternative calling conventions. In cached architectures, it may execute slightly slower. However, a program that is small enough to fit in a computer processor's cache may run faster than a larger program that suffers many cache misses. Small programs may also be faster at thread switching, when other programs have filled the cache.
Threaded code is best known for its use in many compilers of programming languages, such as Forth, many implementations of BASIC, some implementations of COBOL, early versions of B, and other languages for small minicomputers and for amateur radio satellites.

View More On
  1. pietro beretta

    "Old" Ruger Sr22 threaded barrel

    I have an "Old" Ruger SR22. I know at one point they made a threaded barrel for the SR22 with the older serial numbers. I just cant find any in stock or available anymore at this point. I just got into NFA items and wanted to get a threaded barrel for this thing so I can fit a can on her. The...
Back Top