Felix Queißner
Felix Queißner
### Zig Version 0.10.0-dev.1261+6f986298c ### Steps to Reproduce ```zig const std = @import("std"); pub fn main() !void { var value: u4 = undefined; std.debug.print("u4={}, usize={}\n", .{ value, @as(usize, value), });...
A lot of exhaustive enums don't use up the full number of options for their storage class, thus they have leftover bits or values. We can take advantage of these...
Quoting @SpexGuy: > casting pointer->int->pointer has a side effect that the optimizer cannot remove: it discards provenance information. You should use *c_void or *const c_void instead as the erased type....
Quoting @SpexGuy: > This might not be the goal, but my version had separate types for SinglePointer, ManyPointer, Slice, etc. That allowed me to avoid serializing the pointer part of...
This is actually a Zig issue: https://github.com/ziglang/zig/issues/6706
Change `null_pointer` to reflect the actual address of the `null` address
Expose common functions like `install()` and `setBuildMode()`, also `installRaw()`
For AVR, it must be in RAM to be efficiently accessed, for ARM devices, it is less important