Line | |
---|
1 | |
---|
2 | (** This module defines the target architecture and instanciates the memory |
---|
3 | functor for each intermediate language. *) |
---|
4 | |
---|
5 | (* Clight as an interpretation independant from the target |
---|
6 | architecture. Integers and addresses are 4 bytes long. *) |
---|
7 | |
---|
8 | module DataSize32 = |
---|
9 | struct |
---|
10 | let alignment = Some 4 |
---|
11 | let int_size = 4 |
---|
12 | let ptr_size = 4 |
---|
13 | end |
---|
14 | |
---|
15 | (* The target architecture: the Intel 8051. *) |
---|
16 | |
---|
17 | module TargetArch = I8051 |
---|
18 | |
---|
19 | module ClightMemory = Memory.Make (DataSize32) |
---|
20 | module CminorMemory = Memory.Make (TargetArch) |
---|
21 | module RTLabsMemory = Memory.Make (TargetArch) |
---|
22 | module RTLMemory = Memory.Make (TargetArch) |
---|
23 | module ERTLMemory = Memory.Make (TargetArch) |
---|
24 | module LTLMemory = Memory.Make (TargetArch) |
---|
25 | module LINMemory = Memory.Make (TargetArch) |
---|
Note: See
TracBrowser
for help on using the repository browser.