Multiplication by integer constants
Robert Bernstein · Software Practice and Experience · 1986
Abstract Methods are given for finding a sequence of ‘add’, ‘subtract’ and ‘shift’ instructions to multiply the contents of a register by an integer constant. Each method generalizes the previous one and requires only a few intermediate or scratch registers. A variation of the last method is used in the PL.8 compiler and uses an unnoticeable amount of the overall compile time. Some statistics roughly indicating the effectiveness of the methods are presented.
Cited by 104 works. doi:10.1002/spe.4380160704
Authors
References
- The Art of Computer Programming
- Compilers: Principles, Techniques, and Tools
- The art of computer programming. Vol.2: Seminumerical algorithms
- The art of computer programming. Vol.1: Fundamental algorithms
- The 801 minicomputer
- Register allocation via coloring
- Register allocation & spilling via graph coloring
- The Structure of Computers and Computations
- Register allocation & spilling via graph coloring
- An overview of the PL.8 compiler