C+ documentation

Build with confidence.

Language fundamentals, compiler workflows, libraries, and package management in one practical reference.

Overview

Start here

C+ source files use the .csp extension. The compiler checks the program, lowers it through the compiler pipeline, and creates the requested output.

# compile a program
cspc hello.csp -O2 -o hello

# check without producing an executable
cspc hello.csp --check
Toolchain

Compiler workflows

Browse source →
Low-level programming

CP ASM

Example source →

CP ASM uses .cpsm files and has its own lexer, parser, AST, validated directives, and native assembler emission.

.target x86_64
.proc main
    xor eax, eax
    ret
.end
Dependencies

CSX package manager

Package index →

Install dependencies into a project-local prefix so builds remain explicit and reproducible.

csx list
csx --prefix .csx install cp-network
csx --prefix .csx install cp-containers
Reference

Common questions

How do I print colored terminal text?

Include <cpstream> and use printc with a supported color value.

Where are the standard headers?

The library index documents each public header and links it to the owning CSX package.

Can I inspect generated output?

Use the compiler’s emit commands for the supported intermediate or target representation.

Community safety

Identity and conduct rules

No impersonation

Do not claim to be another person, company, maintainer, government body, or the CSP Foundation. Official and confusingly similar names are reserved.

No harmful accusations

Do not post threats, harassment, private information, fabricated evidence, or allegations presented as verified fact. Report serious matters through appropriate legal channels.

Identity is not verified by a name

A display name or username never proves someone’s legal identity. Verified status requires a separate, documented review.

Fair moderation

Automated systems may flag suspicious activity, but account restrictions require recorded reasons, human review, and an appeal path.

Community wiki

Write a post

Sign in to post →
Respect GuardChecks abuse and disrespect
Safety GuardChecks hacking and exploitation topics
Claims GuardChecks blame and harmful accusations

Every submission is screened on the server. Clean posts publish immediately; flagged posts wait for a human decision. Automated checks never ban an account by themselves.

Community notes

Project updates

Loading updates…