Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

compressed auipc #158

@jnk0le

Description

@jnk0le

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

EDIT:

  • PIC code: GOT table acceses are also auipc based

Metadata

Metadata

Assignees

No one assigned

    Labels

    future ideaSomething for a future version of the spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions