millicode

{{short description|Higher level of microcode}}

{{Broader|Vertical microcode}}

{{program execution}}

In computer architecture, millicode is a higher level of microcode used to implement part of the instruction set of a computer. The instruction set for millicode is a subset of the machine's native instruction set, omitting those instructions that are implemented using millicode, plus instructions that provide access to hardware not accessible using the native instruction set. Millicode routines are used to implement more complex instructions visible to the user of the system. Implementation of millicode may require a special processor mode called millimode that provides its own set of registers, and possibly its own special instructions invisible to the user.

The term millicode was introduced to literature by Klingman in 1981,{{cite journal |last1=Klingman |first1=Edwin |title=Hierarchical Coding of Microcomputers for High-Level Architecture |journal=IEEE Micro |date=February 1981 |volume=1 |issue=1 |pages=53–56 |doi=10.1109/MM.1981.290826 }} although terms like nanocode had been in use since the early 1970's when describing computer architectures with hierarchical implementations of instructions.{{cite web |last1=Smotherman |first1=Mark |title=A Brief History of Microprogramming |url=https://people.computing.clemson.edu/~mark/uprog.html |access-date=16 September 2024}}{{cite book |last1=Nanodata Corporation |title=QM-1 Hardware Level User's Manual |date=March 21, 1973 |location=Williamsville, New York |pages=18 |edition=2nd |url=http://ftpmirror.your.org/pub/misc/bitsavers/pdf/nanodata/QM1HW.pdf |access-date=16 September 2024}} Various computers have used millicode in their designs, such as the System/390 9672-G4 processor.{{cite journal|last=Rogers|first=Bob|title=The What and Why of zEnterprise Millicode|journal=IBM Systems Magazine|date=Sep–Oct 2012|url=http://www.ibmsystemsmag.com/mainframe/administrator/performance/millicode_rogers/|archive-url=https://web.archive.org/web/20121009085728/http://www.ibmsystemsmag.com/mainframe/administrator/performance/millicode_rogers/|archive-date=October 9, 2012|url-status=dead}} The following are cited as advantages of millicode:

  • More complex instructions can easily be constructed from several millicode instructions.
  • Construction of a compatible line of computer models with different performance is simplified.
  • Millicode instructions can bypass CPU cache to improve performance.
  • Instructions can update multiple storage locations without concern for being interrupted.
  • Millicode can execute instructions at a higher privilege level without involving the operating system.
  • Millicode can provide a complex instruction as if it were a subroutine, making user code smaller.

The "i370" code for the "Capitol" chipset used in some ES/9370 models was similar to millicode, in that it was written as a combination of System/370 instructions and code that had access to special hardware features.{{cite book|title=The Design of a Microprocessor|date=6 December 2012|editor=Wilhelm Spruth|isbn=978-3-642-74918-6|publisher=Springer-Verlag|section=7.2 High Level Microprogramming in I370|url=https://books.google.com/books?id=0YmqCAAAQBAJ&pg=PA303}}

See also

References

{{Reflist}}