self-host TCS compiler GIR and add portable host runtime
This commit is contained in:
parent
3959ae4270
commit
ff29e52a32
33 changed files with 3848 additions and 831 deletions
33
language/standards/TCS-HOST-ABI-v0.1.hldp
Normal file
33
language/standards/TCS-HOST-ABI-v0.1.hldp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
schema: tcs.host-abi/v1
|
||||
id: TCS-HOST-ABI-0001
|
||||
version: 0.1.0
|
||||
language_frontend: ONE_TCS_COMPILER
|
||||
machine_ir: GIR_1
|
||||
rule: HOST_BACKENDS_MUST_NOT_CHANGE_TCS_SEMANTICS_AUTHORITY_OR_RECEIPTS
|
||||
targets:
|
||||
- target_id: TCS-HOST-MACOS-AARCH64-0001
|
||||
triple: aarch64-apple-darwin
|
||||
role: HOLOLAKE_HUMAN_AND_PERSONA_LOCAL_NODE
|
||||
- target_id: TCS-HOST-LINUX-X86_64-0001
|
||||
triple: x86_64-unknown-linux-musl
|
||||
role: GUANGHU_OS_LINUX_COMPATIBILITY_SUBSTRATE
|
||||
- target_id: TCS-HOST-WINDOWS-X86_64-0001
|
||||
triple: x86_64-pc-windows-msvc
|
||||
role: HOLOLAKE_WINDOWS_LOCAL_NODE
|
||||
required_host_operations:
|
||||
- EXACT_ROOT_FILE_READ
|
||||
- EXACT_ROOT_ATOMIC_WRITE
|
||||
- SHA256
|
||||
- MONOTONIC_TIMEOUT
|
||||
- TARGET_READBACK
|
||||
forbidden_host_expansion:
|
||||
- INFER_TARGET_FROM_CURRENT_DIRECTORY
|
||||
- INFER_AUTHORITY_FROM_OS_USER
|
||||
- SUBSTITUTE_SHELL_FOR_UNREGISTERED_OPERATION
|
||||
- CHANGE_GIR_SEMANTICS_BY_PLATFORM
|
||||
acceptance:
|
||||
compile_same_tcs_source_to_same_semantic_gir: REQUIRED
|
||||
execute_same_gir_with_equivalent_receipt_state: REQUIRED
|
||||
host_specific_receipt_fields: [target_triple, host_runtime_sha256]
|
||||
cross_target_evidence_required: true
|
||||
current_state: CONTRACT_DEFINED_IMPLEMENTATION_IN_PROGRESS
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
schema: tcs.self-host-standard/v1
|
||||
id: TCS-SELF-HOST-STANDARD-0001
|
||||
version: 0.1.0
|
||||
state: DEFINED_NOT_YET_PASSED
|
||||
state: LOCAL_SELF_HOST_PASS_CROSS_HOST_FINAL_GATE_IN_PROGRESS
|
||||
compiler_source: language/compiler/TCS-COMPILER-STAGE1.tcs
|
||||
gates:
|
||||
- id: SH-01
|
||||
|
|
@ -22,12 +22,19 @@ decision:
|
|||
allowed: [FAIL_0, PASS_100]
|
||||
partial_pass: false
|
||||
current:
|
||||
SH-01: FAIL_0
|
||||
SH-02: FAIL_0
|
||||
SH-03: FAIL_0
|
||||
SH-04: FAIL_0
|
||||
SH-05: FAIL_0
|
||||
SH-06: FAIL_0
|
||||
SH-01: PASS_100
|
||||
SH-02: PASS_100
|
||||
SH-03: PASS_100
|
||||
SH-04: PASS_100
|
||||
SH-05: PASS_100
|
||||
SH-06: PASS_100
|
||||
SH-07: FAIL_0
|
||||
aggregate: FAIL_0
|
||||
|
||||
evidence:
|
||||
compiler_a: build/self-host/compiler-A.gir.json
|
||||
compiler_b: build/self-host/compiler-B.gir.json
|
||||
semantic_fixed_point_field: identity.definition_sha256
|
||||
standard_library: build/self-host/TCS-STDLIB-CORE.module.gir.json
|
||||
runnable_module: build/self-host/ECHO-PACKAGE.module.gir.json
|
||||
stage0_disabled_test: native-runtime/tcs-gir-runtime/tests/stage1_runtime.rs
|
||||
negative_corpus: language/tests/negative/UNREGISTERED-OPERATION.tcs
|
||||
|
|
|
|||
Loading…
Reference in a new issue