Why calculate the same constants at every startup?
A list of status messages can supply both the text for a display and the offsets into a packed string. Edit a message once and regenerate both. The target needs neither a startup calculation nor a hand-maintained table of offsets.
Unimal is a standalone preprocessor. Its directives expand macros, evaluate expressions and control which text goes into the output. The surrounding text can be C, assembly, or another language.
The 2.2 archive includes the generated lexer and parser, build instructions and smoke tests. The eight application notes explore specific uses.