Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
- **Linear Ownership.** Rejects use-after-free and double-free. The self-hosted compiler infers where each allocation's life ends and places it on the stack or frees it there ([docs/lifecycles.md](docs/lifecycles.md)).
- **Lexical Lenses.** Scoped mutable access without manual pointer arithmetic or ownership transfer.
- **Native Backend.** `trackc build` writes a static x86-64 Linux executable itself, with no C compiler, assembler or linker.
- **Track only.** The repository holds no C or Rust. Track targets x86-64 Linux only and bootstraps from a committed native seed binary.
- **Track only.** The repository holds no C or Rust. Track bootstraps from a committed native seed binary.
- **Cross-compiling.** `trackc build --target x86_64-windows` writes a Windows PE executable from any host.

| target | `trackc build --target` | status |
|---|---|---|
| x86_64-linux | default on Linux | static ELF |
| x86_64-windows | `x86_64-windows` | PE32+ console .exe (kernel32); trackc.exe self-hosts |
| aarch64-linux, x86_64/aarch64-macos, aarch64-windows | | not yet |

## Hello World

Expand Down
Binary file modified bootstrap/seed/trackc
Binary file not shown.
8 changes: 6 additions & 2 deletions compiler/rt/sys.trk → compiler/rt/os/linux.trk
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// rt/sys.trk — Track runtime: arguments, environment, processes, clock,
// files, sockets. All through Linux x86-64 system calls.
// rt/os/linux.trk — Track runtime OS layer for Linux: arguments,
// environment, processes, clock, files, sockets, all through Linux x86-64
// system calls. Every OS layer (rt/os/<os>.trk) defines the same OS
// interface (docs/native.md, "The OS layer"); trackc loads the one for
// the target. On Linux the portable modules' own `syscall6` calls go
// straight to the kernel; other OS layers also define `os_syscall`.

// ---------------------------------------------------------------- process

Expand Down
Loading
Loading