You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
standard 3bit rd`
without immediate, has a range of subsequent addi/lw with +-2KiB range, adding small imm multiplies it
use cases:
callback heavy code
need to find such codebases (usually proprietary)
Results could be biased by current compilers not caring about callback code placement (no reason to), loading addresses from .rodata or as lui + addi
addressing .rodata
sometimes .rodata is in close range of current pc (e.g. small embedded with like <=32K of FLASH)
not very useful if tp ends up as .rodata pointer instead of second gp
standard 3bit rd`
without immediate, has a range of subsequent addi/lw with +-2KiB range, adding small imm multiplies it
use cases:
need to find such codebases (usually proprietary)
Results could be biased by current compilers not caring about callback code placement (no reason to), loading addresses from
.rodataor aslui+addi.rodatasometimes
.rodatais in close range of currentpc(e.g. small embedded with like <=32K of FLASH)not very useful if
tpends up as.rodatapointer instead of secondgpEDIT: