docs
Using acompiled.
Your workspace
Sign in with a configured Google or GitHub provider, then open your workspace to create a public or private repository. Edit source and commit to main, invite readers or maintainers, and use issues, discussions and pull requests to collaborate.
A merge needs an independent owner or maintainer approval of the exact proposed commit. A changed proposal clears approvals; submitting a review from an older page requires refreshing and inspecting the new diff. Account settings includes profile editing, session revocation, export and confirmed deletion.
Clone
Public repositories support read-only Git clone and fetch over the site's HTTP or HTTPS connection. Private reads require an authorized browser session; signed-in ZIP downloads are available. Source changes are committed through the workspace editor and pull requests.
Any ref also downloads as a ZIP from /owner/repo/archive/ref.zip, and any file at any ref is served as-is from /owner/repo/raw/ref/path.
Verified builds
In a repository's community page, owners and maintainers can request an isolated build of an exact commit when a build worker is available. The current runner produces NASM x86-64 ELF objects, listings and disassembly with recorded tools, source hashes and artifact SHA-256 values. It has a 60-second deadline, a 512 MB memory limit and no network access.
Build jobs use a standard assembly recipe. Repository scripts, executable outputs and commands from acompiled.toml are not run by the submission worker. Cancel a queued or running job from the same page. Source snapshots are removed at completion, artifacts expire after 30 days, and job records after 90 days.
acompiled.toml
The seeded catalog's trusted build examples use these recipe fields. They describe demonstration histories and are separate from the isolated submission runner.
This is the file from kestrel-os/kestrel:
# Build settings for acompiled's verified builds.
[project]
isa = "x86-64"
assembler = "nasm"
target = "BIOS boot sector"
[[step]]
name = "assemble stage 0"
run = ["nasm", "-f", "bin", "-o", "build/boot.bin", "boot/boot.asm"]
[artifact]
path = "build/boot.bin"
size = 512
| Key | Meaning |
|---|---|
[project] isa | x86-64, x86-16, arm64, riscv64… Chooses the highlighter for .s files and the filters on Explore. |
[project] assembler | nasm, masm or gas. |
[project] target | Free text shown with the build, such as "Linux x86-64 ELF". |
[[step]] name | What the step is called in the build log. |
[[step]] run | The command as an array of strings. No shell runs it, so there is no quoting to get wrong. |
[[step]] on | "linux" or "windows" runs the step on that kind of host; on a Windows build server, linux steps run in WSL. Without it, the step runs on the build server itself. |
[[step]] expect | Text the step's output must contain for the step to pass. |
[[step]] timeout | Seconds before the step is stopped. The default is 60. |
[artifact] path | The file the build ships. Its size and SHA-256 are recorded for every commit. |
[artifact] paths | More files to keep alongside it. |
[artifact] size | The artifact must be exactly this many bytes, or the build fails. |
[artifact] max_size | The artifact may be at most this many bytes. |
Trusted seed preparation can use the installed NASM, MASM, GAS, linker and LLVM tools. It is an operator task; users' submitted projects use the isolated NASM recipe described above.
Bytes per line
The build records which bytes each source line assembled to, and the file view shows them beside the code. In a diff, the added and deleted lines show their bytes too, so a change that claims to save 16 bytes can be checked line by line.
- NASM: from the assembler's own listing. Macro expansions count toward the line that invoked them.
- GAS through clang with
-g: from the debug line table. - MASM through llvm-ml64: the object is disassembled and matched to the source in order.
Build hosts
Keyboard
| / | Search, or jump to a file in the current repository |
| t | Find a file in the current repository |
| y | Turn the current file's URL into a permanent link to this exact commit |
| b | Show or hide the bytes column |
| Click a line number | Link to that line. Shift-click another to link to the range. |
API
GET /api/repos | Seeded catalog repositories, with their latest builds |
GET /api/community/repos | Repositories visible to the current viewer |
POST /api/community/repos | Create your repository; authenticated origin and CSRF checks apply |
GET /api/me | Your profile, repositories and sessions |
GET /api/repos/owner/name | One repository, with its build history |
GET /api/repos/owner/name/files?ref=main | Every file path at a ref |
GET /api/search?q=… | Repositories, people and lines of code |
GET /api/health | Whether the server and its build hosts are up |