History log of /seL4-l4v-master/HOL4/examples/dev/sw2/NormalScript.sml
Revision Date Author Comments
# 18934f7c 03-Dec-2018 Johannes Åman Pohjola <johannes.amanpohjola@data61.csiro.au>

Reconcile store_thms with diverging names in db and val binding


# 4761143b 10-Aug-2009 Tjark Weber <Tjark.Weber@cl.cam.ac.uk>

Removed trailing whitespace from all .sml and .sig files.

This affects over 900 files and was done using emacs's delete-trailing-whitespace
function in batch mode. Building the system with Poly/ML and Moscow ML seems to
work, so I'm hoping these changes don't break anything. Please complain if
they do!


# bcca2984 09-Nov-2007 Guodong Li <ligd@cs.utah.edu>

Refine front-end outputs to be more consistent with Magnus's backend.


# ab54a2e4 17-Aug-2007 Guodong Li <ligd@cs.utah.edu>

Modify the front-end to produce code mostly consistent with the following grammar
prefered by the back-end (except for the shifting operations):
let r range over register names (r0,r1,r2,etc), m range over memory locations (m0,m1,m2,etc),
f over function names, i over natural numbers (<32) and w over 8-bit word constants.

p ::= let r = exp in p
| let m = r in p
| let (v,v,...,v) = f (v,v,...,v) in p
| if g then p else p
| (v,v,...,v) | f (v,v,...,v)

v ::= r | m
g ::= ~ g | r cmp mode | r && mode = 0w
cmp ::= = | < | <+ | <= | <=+
exp ::= m | mode | ~ mode | r op mode | r * r
op ::= + | - | && | ?? | !!
mode ::= w | r | r << i | r >> i | r >>> i


# 47749c4e 16-Aug-2007 Guodong Li <ligd@cs.utah.edu>

Customize the front-end to produce code in a format the ARM backend needs

Main change:
Register allocation and recursive calls. The registers/memory
locations in all recursive calls have to be the same, e.g.

f(r0,r1) =
if .... then ... f(r0,r1)
else .... f (r0,r1)

This revision is suboptimal however.

A new test file "refined_format.sml" is added to illustrate the results


# ea0d64bc 24-Jul-2007 Guodong Li <ligd@cs.utah.edu>

Updates at the front-end


# 8b28be47 10-Jul-2007 Guodong Li <ligd@cs.utah.edu>

wrap up compiler 2


# 5baef8d5 26-Jun-2007 Konrad Slind <konrad.slind@gmail.com>

Revisions, mainly to add machine words and their operations to the
source language.


# 2884b557 11-Jun-2007 Konrad Slind <konrad.slind@gmail.com>

Revised build so that system can be separately compiled. Also moved
test programs to separate directory.