Source/Packages

Compiler.MachineAArch64

packages/compiler/src/Compiler/MachineAArch64.alpha

1,480 lines362 declarations58.2 KiBSHA-256 16c7a1ba00f1

def · lines 497–498

aarch64Two

Full file
Encoding is BYTE-ORIENTED, like Compiler.MachineX86Native, and for the same reason: in the runtime machine a Nat literal costs steps linear in its value, so an opcode base near 3.6 billion is unrunnable even though the checker normalises it instantly. Every word is built as its four little-endian bytes from the base's bytes plus each field's contribution, and every intermediate stays below 256 except the operands themselves, which the smart constructors already bound. Powers of two are computed by doubling rather than written as literals for the same reason.
497def aarch64Two : Nat =
498  2

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.