| 1 |
= Machine |
| 2 |
|
| 3 |
<<Machine#>> is an <<IntermediateLanguage#>>, translated from <<RSSA#>> |
| 4 |
by <<ToMachine#>> and used as input by the <<Codegen#>>. |
| 5 |
|
| 6 |
== Description |
| 7 |
|
| 8 |
<<Machine#>> is an <<Untyped#>> <<IntermediateLanguage#>>, corresponding |
| 9 |
to an abstract machine with an infinite number of temporaries. |
| 10 |
|
| 11 |
== Implementation |
| 12 |
|
| 13 |
* https://github.com/MLton/mlton/blob/master/mlton/backend/machine.sig[`machine.sig`] |
| 14 |
* https://github.com/MLton/mlton/blob/master/mlton/backend/machine.fun[`machine.fun`] |
| 15 |
|
| 16 |
== Type Checking |
| 17 |
|
| 18 |
The <<Machine#>> <<IntermediateLanguage#>> has a primitive type checker |
| 19 |
(https://github.com/MLton/mlton/blob/master/mlton/backend/machine.sig[`machine.sig`], |
| 20 |
https://github.com/MLton/mlton/blob/master/mlton/backend/machine.fun[`machine.fun`]), which only checks |
| 21 |
some liveness properties. |
| 22 |
|
| 23 |
== Details and Notes |
| 24 |
|
| 25 |
The runtime structure sets some constants according to the |
| 26 |
configuration files on the target architecture and OS. |