Nitpick Low-Level Hardware & OS Integration

Nitpick is designed for systems-level control. It exposes direct access to hardware and operating system capabilities through explicit, highly-auditable syntactic mechanisms.

1. System Calls (sys Builtins)

Nitpick categorizes direct syscall invocation into three increasingly permissive tiers, each mapped to different safety guarantees. This allows security auditors to immediately track dangerous behavior.

2. Pointers and Memory

Unlike C, where pointers use the * operator ambiguously (for both multiplication and dereferencing), Nitpick explicitly separates these operators visually to prevent parser ambiguity and improve readability.

int32:x = 42i32;
int32->:ptr = @x;       // Address-of
int32:val = <-ptr;      // Full dereference

(Note: In extern blocks defining C-FFI functions, the traditional * symbol is used for thin pointers to remain compatible with C headers).

3. Inline Assembly

For bare-metal tuning, Nitpick allows LLVM-mapped inline assembly blocks.

(See asm_specs.txt for full assembly constraints and mapping rules).