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):
| Literal | Size | Name |
|---|---|---|
0x1000 | 4 KiB | Small |
0x200000 | 2 MiB | Large |
The page size defaults to 0x1000 (4 KiB) if omitted.
§Memory Permissions
Mappings take a permission string literal (case-insensitive, order-insensitive):
| String | Access |
|---|---|
"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:
| Type | Width | Signed |
|---|---|---|
int | arbitrary | yes |
int8 | 8-bit | yes |
int16 | 16-bit | yes |
int32 | 32-bit | yes |
int64 | 64-bit | yes |
uint | arbitrary | no |
uint8 | 8-bit | no |
uint16 | 16-bit | no |
uint32 | 32-bit | no |
uint64 | 64-bit | no |
bool | 1-byte | — |
byte | 1-byte | no |
Address | platform-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). - Invalid
Page Size - The address does not correspond to a valid
PageSize. - Invalid
Permission - The string is not a
Permission.
Enums§
- Array
Size - The length of a fixed-size array type: an integer literal or a reference to
a declared integer
const. Folded to a count bytast(tast::ArrayLen). - Page
Size - Page sizes supported by seL4 on
AArch64. - Permission
- Memory access permissions for mappings.
- Primitive
Type - A primitive type in Fiducia.
- Type
- A complete type in Fiducia — primitive, named struct, or fixed-size array.