[@machine]A typed machine boundary
Instructions, labels and control transfers live in the language model instead of an asm template.
The machine layerOne continuous systems language, from functions to machine instructions.
nC is a systems programming language in native bootstrap. Ordinary source, foundational contracts, machine instructions and material primitives share one typed model, so the meaning of a program survives all the way down.
Four surfaces of the same language: functions, root contracts, typed machine control and hardware primitives. Switch between them and read the real source.
Explore the language.nLanguage guidecounter {
fn:
public:
run() -> bool {
value >> int <- 0;
while (value < 3) {
value <- value + 1;
}
return value == 3;
}
ref main ->> run;
fa:
return true;
}A typed place, an explicit write, a named function and a declared entry point.
The example returns a bool. The entry point is selected by ref main; the function name alone has no entry-point privilege.
[@]Reference fixturerootCore[@] {
stc:
rootAddr: addr;
rootWord: word;
binary:
@rootWord >> word : 0b1;
bind:
@rootAddr >> addr : 0b1;
raw {
}
fn:
rootCheck() -> bool {
public:
return true;
}
fa:
return true;
}Root declarations express the foundations that other language levels depend on.
This is a source-inspection fixture. Read its contract alongside the compiler route and target profile.
[@machine]Explicit overflow branchmachineCheckedAdd[@machine] {
reg:
rax;
rbx;
label:
entryPoint;
overflow;
finish;
inst:
entryPoint:
add rax, rbx;
jmp.ov overflow;
jmp finish;
overflow:
halt;
finish:
ret;
final:
ret;
}Registers, labels, instructions and the final remain visible in the source model.
jmp.ov follows the add result into an explicit overflow path. This does not enable automatic checked arithmetic for every operation.
primitive[@]Inspection fixtureprimitive[@]:
capability material_io:
allow port.read;
allow port.write;
port uart0.data:
addr ioaddr(0x03F8);
port uart0.status:
addr ioaddr(0x03FD);
operation kernelEntry():
capability material_io;
portWrite uart0.data <- 0x41;
portRead uart0.status;
mmioWrite 0x0040 <- 0x01 volatile;
mmioRead 0x0040 volatile;
read side_effect none;
volatileWrite 0x0050 <- 0x02;
volatileRead 0x0050;
fence;
cpuPause;
haltLoop;
anchor:
boot0;
bridge:
root.memory.resolve;
seal:
primitiveClosed;Capabilities and material operations describe the contract at the hardware boundary.
This fixture includes privileged operations. It is for source inspection; execution requires the appropriate profile, permissions and hardware.
Four language surfaces. One semantic model.
Five phases, from declaration to native image. Select one to see what it is responsible for.
Inside the compilerFunctions, typed places and imports define program units. Visibility, control flow and representation must retain their identity through analysis.
examples/00_hello/hello.nSave the program as hello.n, then build and run a native executable. Press Run to replay a verified run of the public kit.
Get the native kituse <io:output>;
helloCompacto {
to main {
println("Hello, nC public beta");
}
fa:
return true;
}.\ncc.exe self-test
.\ncc.exe compiler emit-executable hello.n `
--target x86_64-pc-windows-msvc --out hello.exe
.\hello.exeHello, nC public beta
[@machine]Instructions, labels and control transfers live in the language model instead of an asm template.
The machine layersize / align / ABILayout, alignment and calling conventions are part of the model. Memory stays manual.
Memory and representationsource → IR → imageAnalysis and emission routes are exposed; the bootstrap records sources and artifact comparisons.
Published evidenceBootstrap V81 publishes its scope, its reconstruction and how to reproduce it. These figures identify a validation scope, not a performance comparison.
Reproduce the reconstruction| Native kits | Windows x86-64 and Linux / WSL x86-64 |
|---|---|
| Reconstruction | B2 and C2 are byte-identical within each documented host. |
| Language contract | Manual/raw memory, explicit representation and typed machine surfaces. |
| Open work | Full native CLI coverage and global Stage3 promotion. |