Elektrine lite

← Feed

@tranquillity@mastodon.minionflo.net

Post #3453967

2026-06-28 19:49 UTC

@brettm a variable will often turn into a pointer, depending on where it is stored As for dereferencing, consider the x86 assembly: cmp a, b where a, b are constants compares a and b, whereas cmp [a], b reads a to get an address, then reads memory at the address. The constant is hardcoded in the machine code, except one is a memory address whilst the other is an address. A pointer is an address. ([a] is the Intel assembly syntax for dereferencing a pointer, Zig has a.*, C has *a...)

Replies (0)

No replies.