-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathopenarch.lua
More file actions
215 lines (213 loc) · 11.3 KB
/
Copy pathopenarch.lua
File metadata and controls
215 lines (213 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
-- openarch — the architecture-mechanism layer.
--
-- Form A because mcpp looks for a package manifest at the package ROOT, and
-- Form B would leave it one level down inside the tarball's wrap directory.
--
-- ⚠️ NO `deps`. This package needs nothing installed: it is C++ modules plus
-- per-architecture assembly, and which assembly is compiled follows the
-- resolved target through the manifest's own `cfg(arch = ...)` sections.
--
-- ⭐ 0.4.0 PASSES THE GATE ON THREE MACHINES, WHICH IS WHAT MAKES IT AN
-- ABSTRACTION RATHER THAN A FIT.
--
-- riscv64 and aarch64 are both weakly-ordered, fixed-width RISC machines: an
-- interface that suits both may suit them because it is right or because they
-- are alike, and no amount of testing on those two tells the cases apart.
-- x86_64 is neither — variable-length instructions, total store order under
-- which three of the four barriers need no instruction at all, and an interrupt
-- mechanism that is a table of 256 gates. One probe source runs on all three
-- and prints byte-identical output.
--
-- ⚠️ THE TARBALL CARRIES FOUR PACKAGES AND A CONSUMER NAMES ONE. Since 0.4.0
-- the repository root is BOTH the interface package and a workspace; the ABI
-- contract and the three backends are members reached by `path` from inside the
-- same archive. `openarch = "0.4.0"` is the whole of a consumer's manifest, and
-- the backend for its target arrives through the default `backend-auto`
-- feature.
package = {
spec = "1",
namespace = "mcpplibs",
name = "openarch",
description = "openarch: the architecture-mechanism layer — execution contexts, traps and address spaces, as one interface over several instruction sets",
licenses = {"Apache-2.0"},
repo = "https://github.com/mcpplibs/openarch",
type = "package",
xpm = {
linux = {
["0.7.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.7.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.7.0/openarch-0.7.0.tar.gz",
},
sha256 = "6f2cb70c3e77ce8216e721420210b72ac6b70d7f90d28dbcb69a604c36b217b6",
},
["0.6.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.6.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.6.0/openarch-0.6.0.tar.gz",
},
sha256 = "5d3710bbaa3d47ec9953a6dcc7b46bf6a68177bfc93d2fab4835281b25f95094",
},
["0.5.1"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.5.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.5.1/openarch-0.5.1.tar.gz",
},
sha256 = "099c40bb9f0e2003ba435063b5c5b3b75ba7c5510a0df846daa95934869131d6",
},
["0.5.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.5.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.5.0/openarch-0.5.0.tar.gz",
},
sha256 = "a09129e270bcd325c019ce6de68844b8cf4fe922499bd3ef57550be6ec74f640",
},
["0.4.1"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.4.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.4.1/openarch-0.4.1.tar.gz",
},
sha256 = "1056e2f8dbfa82cc117761372ce1df3b736d4b95e3d7e3eaa328646cd8b9de84",
},
["0.4.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.4.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.4.0/openarch-0.4.0.tar.gz",
},
sha256 = "deda18140965c7ebee9f49c90b9545aec38d564fc413daa3a075a02725020106",
},
["0.2.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.2.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.2.0/openarch-0.2.0.tar.gz",
},
sha256 = "56d4706f45ee581bcd9d1e122a743daf74b26aeaf68f4675b10e1df5596e6303",
},
["0.1.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.1.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.1.0/openarch-0.1.0.tar.gz",
},
sha256 = "9f1799c66eb5b96fe1cfe09c6d534d26b61fed14c985e9fa4ce788cd0ecb0e65",
},
},
macosx = {
["0.7.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.7.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.7.0/openarch-0.7.0.tar.gz",
},
sha256 = "6f2cb70c3e77ce8216e721420210b72ac6b70d7f90d28dbcb69a604c36b217b6",
},
["0.6.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.6.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.6.0/openarch-0.6.0.tar.gz",
},
sha256 = "5d3710bbaa3d47ec9953a6dcc7b46bf6a68177bfc93d2fab4835281b25f95094",
},
["0.5.1"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.5.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.5.1/openarch-0.5.1.tar.gz",
},
sha256 = "099c40bb9f0e2003ba435063b5c5b3b75ba7c5510a0df846daa95934869131d6",
},
["0.5.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.5.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.5.0/openarch-0.5.0.tar.gz",
},
sha256 = "a09129e270bcd325c019ce6de68844b8cf4fe922499bd3ef57550be6ec74f640",
},
["0.4.1"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.4.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.4.1/openarch-0.4.1.tar.gz",
},
sha256 = "1056e2f8dbfa82cc117761372ce1df3b736d4b95e3d7e3eaa328646cd8b9de84",
},
["0.4.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.4.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.4.0/openarch-0.4.0.tar.gz",
},
sha256 = "deda18140965c7ebee9f49c90b9545aec38d564fc413daa3a075a02725020106",
},
["0.2.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.2.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.2.0/openarch-0.2.0.tar.gz",
},
sha256 = "56d4706f45ee581bcd9d1e122a743daf74b26aeaf68f4675b10e1df5596e6303",
},
["0.1.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.1.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.1.0/openarch-0.1.0.tar.gz",
},
sha256 = "9f1799c66eb5b96fe1cfe09c6d534d26b61fed14c985e9fa4ce788cd0ecb0e65",
},
},
windows = {
["0.7.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.7.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.7.0/openarch-0.7.0.tar.gz",
},
sha256 = "6f2cb70c3e77ce8216e721420210b72ac6b70d7f90d28dbcb69a604c36b217b6",
},
["0.6.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.6.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.6.0/openarch-0.6.0.tar.gz",
},
sha256 = "5d3710bbaa3d47ec9953a6dcc7b46bf6a68177bfc93d2fab4835281b25f95094",
},
["0.5.1"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.5.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.5.1/openarch-0.5.1.tar.gz",
},
sha256 = "099c40bb9f0e2003ba435063b5c5b3b75ba7c5510a0df846daa95934869131d6",
},
["0.5.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.5.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.5.0/openarch-0.5.0.tar.gz",
},
sha256 = "a09129e270bcd325c019ce6de68844b8cf4fe922499bd3ef57550be6ec74f640",
},
["0.4.1"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.4.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.4.1/openarch-0.4.1.tar.gz",
},
sha256 = "1056e2f8dbfa82cc117761372ce1df3b736d4b95e3d7e3eaa328646cd8b9de84",
},
["0.4.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.4.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.4.0/openarch-0.4.0.tar.gz",
},
sha256 = "deda18140965c7ebee9f49c90b9545aec38d564fc413daa3a075a02725020106",
},
["0.2.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.2.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.2.0/openarch-0.2.0.tar.gz",
},
sha256 = "56d4706f45ee581bcd9d1e122a743daf74b26aeaf68f4675b10e1df5596e6303",
},
["0.1.0"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/openarch/archive/refs/tags/0.1.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/openarch/releases/download/0.1.0/openarch-0.1.0.tar.gz",
},
sha256 = "9f1799c66eb5b96fe1cfe09c6d534d26b61fed14c985e9fa4ce788cd0ecb0e65",
},
},
},
-- The package's own manifest, inside the tarball's wrap directory.
mcpp = "*/mcpp.toml",
}