Hacker News new | ask | show | jobs
by jstimpfle 2793 days ago
Look at the approach from my other comment. Requires only 1 symbol.
1 comments

Both your approach and the `semi::static_map` will generate the same type of load instruction. In both cases, the compiler knows the offset of the values in memory at compile-time. The number of symbols is not really important here.