When working with code compiled by GCC, these directives come up very frequently. Besides, they're just naturally very useful when dealing with labels, especially.
Their only impact is in the preprocessing stage, as they resolve to literal values. Nothing in the simulation/execution would be changed.
RARS handles these directives as expected.
Example:
[error]: Expected an immediate value, but found '%hi'
--> asm/root.c.s at line 284, column 16
284 | lui s4,%hi(font8x8_basic)
....................^ Here
285 | j L19 #
[tip]: Some immediate values are: 10, -10, 0xffaabbcc, 0b101 and 'a'
When working with code compiled by GCC, these directives come up very frequently. Besides, they're just naturally very useful when dealing with labels, especially.
Their only impact is in the preprocessing stage, as they resolve to literal values. Nothing in the simulation/execution would be changed.
RARS handles these directives as expected.
Example: