#truncating ptr in comptime
1 messages · Page 1 of 1 (latest)
also on 64-bit systems, the address won't necessarily fit into a u32 anyway
unless you're doing some very weird stuff?
Yep its for freestanding target
It works if v.b is *const [_]u64 but in that case i cannot truncate it to u32
is there a reason you have to do this at comptime?
Its not that matter if its comptime but i just want to have some such structure inside data section
why not just set the pointer at startup?
I was porting assembly to Zig, so i just wanted to preserve assembly structure
(for a slight, trivial performance benefit)
Hardcoding things
