functor X86MemRegs(X86Instr:X86INSTR) = struct structure I = X86Instr fun error msg = MLRiscErrorMsg.impossible ("X86MemRegs." ^ msg) val sp = X86Cells.esp fun memReg regmap opnd = let fun lookup r = regmap r handle _ => r (* see X86.prim.asm stack layout *) fun disp r = Int32.fromInt((lookup r-40) * 8 + X86Runtime.vFpStart) in case opnd of I.FDirect f => I.Displace{base=sp, disp=I.Immed(disp f), mem=I.Region.stack} | _ => error "memReg" end end
Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: (disp f), mem=I.Region.stack} | _ => error "memReg" end end