doc-src/Tutorial/CodeGen/comp
author wenzelm
Sat, 02 Sep 2000 21:47:08 +0200
changeset 9799 038b018f86f5
parent 5377 efb799c5ed3c
permissions -rw-r--r--
'split' method: '(asm)' option; added 'slow', 'slowsimp', 'bestsimp' methods;

consts comp :: ('a,'v) expr => (('a,'v) instr) list
primrec
"comp (Cex v)       = [Const v]"
"comp (Vex a)       = [Load a]"
"comp (Bex f e1 e2) = (comp e2) @ (comp e1) @ [Apply f]"