next up previous
Next: MIPS RISC Language Abstractions Up: Assembly Language Concepts Previous: Assembly Language Concepts

Translation to Machine Language

figure15

Pascal:

area := width * height / 2 ;

Dyadic (Binary) Pascal Operations:

product := width * height ;
area := product / 2 ;

3-Op SAL Code:

mul      product, width, height
div      area, product, 2



CS 301 Class Account
Mon Sep 13 11:15:41 ADT 1999