Skip to main content

ADDRESS

Constant ADDRESS 

Source
pub const ADDRESS: u32 = 64; // 64u32
Expand description

How wide an address is on the machine this lowers for.

The rule set has no term for a pointer and needs none. An address in a register is an integer of the machine’s address width, every rule that could compute one is a rule about an integer of that width, and the only thing missing was a name. slot used to ask the type how wide it was, and a pointer answers nothing, because how wide an address is belongs to the target rather than to the IR. So this is where the target’s answer is written down.

Sixty four, and a constant rather than something asked of a target, because every architecture rucc_target::Arch names is a sixty four bit one. There is no target in the compiler that would want a different number, and a thirty two bit one would want more from the rule sets than a number.