Skip to main content

Module types

Module types 

Source
Expand description

Core data types for the Fiducia language.

Defines addresses, page sizes, memory permissions, and the Fiducia type system (primitive types, pointers, structs).

§Page Sizes

Memory region sizes and virtual addresses must be aligned to one of two page granularities (seL4 AArch64):

LiteralSizeName
0x10004 KiBSmall
0x2000002 MiBLarge

The page size defaults to 0x1000 (4 KiB) if omitted.

§Memory Permissions

Mappings take a permission string literal (case-insensitive, order-insensitive):

StringAccess
"r"Read-only
"rw"Read-write
"rx"Read-execute
"rwx"Read-write-execute
"x"Execute-only
"wx"Write-execute

Write-only ("w") is rejected. Character order does not matter: "wr" equals "rw".

§Variable Types

Types are used in top-level variable declarations and process bodies.

Primitive types:

TypeWidthSigned
intarbitraryyes
int88-bityes
int1616-bityes
int3232-bityes
int6464-bityes
uintarbitraryno
uint88-bitno
uint1616-bitno
uint3232-bitno
uint6464-bitno
bool1-byte—
byte1-byteno
Addressplatform-width—

Struct type: any identifier not matching a primitive — e.g. MyStruct

Pointer types (ptr<T>) are intentionally absent — all memory access goes through named, declared Mappings.

Structs§

Address
A 64-bit memory address, parsed from hex literals (e.g., 0x1000).
InvalidPageSize
The address does not correspond to a valid PageSize.
InvalidPermission
The string is not a Permission.

Enums§

ArraySize
The length of a fixed-size array type: an integer literal or a reference to a declared integer const. Folded to a count by tast (tast::ArrayLen).
PageSize
Page sizes supported by seL4 on AArch64.
Permission
Memory access permissions for mappings.
PrimitiveType
A primitive type in Fiducia.
Type
A complete type in Fiducia — primitive, named struct, or fixed-size array.