Abstract
The subroutines below are used to simulate 64-bit MMIX arithmetic on an old-fashioned 32-bit computer—like the one the author had when he wrote MMIXAL and the first MMIX simulators in 1998 and 1999. All operations are fabricated from 32-bit arithmetic, including a full implementation of the IEEE floating point standard, assuming only that the C compiler has a 32-bit unsigned integer type.
Some day 64-bit machines will be commonplace and the awkward manipulations of the present program will look quite archaic. Interested readers who have such computers will be able to convert the code to a pure 64-bit form without difficulty, thereby obtaining much faster and simpler routines. Meanwhile, however, we can simulate the future and hope for continued progress.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1999 Author and Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Knuth, D.E. (1999). MMIX-ARITH. In: MMIXware. Lecture Notes in Computer Science, vol 1750. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-46611-8_3
Download citation
DOI: https://doi.org/10.1007/3-540-46611-8_3
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-66938-8
Online ISBN: 978-3-540-46611-6
eBook Packages: Springer Book Archive