Skip to content
CShift0.32

CShift

A language that reads like C#, compiles to small native programs (LLVM, or its own 68000 backend for the Amiga) and manages memory with reference counting instead of a garbage collector.
using System;
int Main()
{
var names = List<string>.Create();
names.Add("Ann");
names.Add("Bob");
foreach (var name in names)
Console.WriteLine($"Hello, {name}!");
return 0;
}

Language guide

A tour of the language, chapter by chapter: structs, interfaces and generics, error handling, memory, threads. Start reading

Language reference

The precise rules: lexical structure, types and conversions, declarations, expressions, statements, memory, the grammar. Read the reference

Library reference

Every type and function of the standard library and the built-in types, with search. Browse the reference

C interop

using Sqlite3 from "sqlite3.h"; imports a C header directly. C interop

The Amiga

--target m68k-amigaos: programs for AmigaOS and the custom chips, with CShift’s own 68000 backend. The m68k backend