Development system of microprocessor for application program including integer division or integer remainder operations
Abstract
A microprocessor ( 10 ) comprises a compiler ( 4 ), which, for a source program including an integer division q=int(a÷b)(int( ) is a function discarding figures below decimal point in parentheses) for dividing integer a, expressed in N bits, by integer constant b, causes a computer to execute a first process for calculating mb=int(m÷b) (where m=2 N ), and a second process for generating an object code, which stores the mb in a first register ( 24 ), calculates qx=int(a×mb÷m), calculates rx=a−qx×b, set a quotient q to q=qx when rx<b, or q=qx+1 when rx>=b; and a microprocessor having an arithmetic circuit ( 11 ), which comprises the first register, a multiplier ( 14 ), and an adder-subtractor ( 16 ), and which executes the object code generated by the compiler.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system for executing an object code converted from a source program having an integer division, said system comprising: a compiler having program code, which, for a source program including an integer division calculation q=int(a−b)(int( ) being a function which discards figures below decimal point in parentheses) for dividing integer a, which is expressed in N bits, by integer constant b, causes a computer to execute a first process for calculating mb=int(m÷b) (where m=2 N ), and a second process for generating an object code, which stores the mb in a first register, calculates qx=int(a×mb÷
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗