You can precompute the values using a PreinitObject
, which executes after compilation but before runtime (for release builds, at least, but t3make
can be configured to do it for debug as well). If the precomputed values are stored in a global table, it will be saved in the image file.
3 Likes