Programs
Write `.cbp` with functions, control flow, variables, strings, arrays, and 256-bit integers.
ClosedBit Coding Studio
closedbit-coding | Release channel
The compiler-focused lane for `.cbp`, checked 256-bit programming, `.cb` storage, `.cba` packages, `.cbl` libraries, `.dll` modules, and `.exe` exports.
Compiler workflow
Use the web account for licensing, then compile locally through the Windows Studio Console and artifact toolbar.
Write `.cbp` with functions, control flow, variables, strings, arrays, and 256-bit integers.
Use `.cb` containers through `CB-Storage` for validated save data.
Compile reusable `.cbp` namespaces into `.cbl` packages.
Build `.cba`, `.exe`, `.dll`, Linux beta packages, encrypted `.cbe` outputs, and per-asset `.cb` / `.dll` sidecars.
help
check
save
compile cba small compute threaded max_memory 1024
compile exe small fps graphics threaded
compile exe small fps graphics threaded msi
compile dll small compute
compile linux chunky compute threaded
compile library small compute
encrypt
encrypt key_file keys\project.key
decrypt key_file keys\project.key
library CB-Math
library CB-Storage
fn main() {
u256 score = (500_000 + 125_000) * 2
CB-Storage.write_text("score.cb", to_string(score))
println("score saved")
save score
}
| Console action or flag | What it does | Requirement |
|---|---|---|
help | Shows the command list. | No source file required. |
check | Runs the source checker used before builds. | Uses the current editor source. |
save | Saves the current editor source. | Requires an opened file or selected save path. |
compile cba | Builds a runnable `.cba` package. | Uses the current editor source when no path is supplied. |
compile exe | Builds a standalone Windows `.exe` with bundled runtime package data. | Add msi to create an installer with ClosedBit's native MSI writer. |
compile dll | Builds a loadable `.dll` package for host apps. | Use when another app will load ClosedBit output. |
compile linux | Builds a Linux beta package folder with a `.cba`, Linux runtime launcher, compiled asset sidecars, and `run.sh`. | Runs through the Linux beta runtime command. |
compile library | Builds reusable functions into `.cbl`. | No fn main() or top-level executable statements. |
small | Compresses output for smaller files. | Cannot stack with chunky. |
chunky | Uses a larger raw package to reduce launch memory spikes and page faults. | Cannot stack with small. |
ai | Selects the tagged-index AI/retrieval profile. | Cannot stack with fps. |
fps | Selects the low-latency presentation profile. | Cannot stack with ai. |
compute | Selects raw compute kernels for math and physics workloads. | Best for non-UI heavy work. |
graphics | Selects the Direct3D render path with fallback. | Use for window and render APIs. |
threaded | Enables worker helpers. | Needed before threads COUNT. |
threads COUNT | Requests 1 to 256 workers. | COUNT must be a whole number. |
max_memory MB | Sets a guarded private-memory budget. | MB must be 1 to 1048576; ignored by uncapped. |
usage_high | Targets roughly 80% CPU pacing. | Use for speed-focused builds. |
uncapped | Removes runtime resource ceilings. | Validation and checked overflow still stay on. |
msi | Packages the generated `.exe` as a Windows installer. | Only valid with compile exe; created by ClosedBit's native MSI writer. |
Runtime Package screen | Runs before every `.cba`, `.exe`, `.dll`, and Linux package launch. | Mandatory always-on Runtime behavior. There is no off switch in source, profiles, flags, or build options. |
encrypt | Protects a `.cba` as an authenticated `.cbe` envelope. | Auto-generates a key or accepts a 256-character key / key_file. |
decrypt | Restores an encrypted package. | Requires the matching key or key_file. |
Login here when you want to view or activate the coding product. The startup login gate now lives inside ClosedBit Studio.
Login to view this product license.