Displaying 1 result from an estimated 1 matches for "poppcrel".
Did you mean:
gotpcrel
2008 Jun 23
0
[LLVMdev] Backend for the ZPU - a stack based / zero operand CPU
...a conditional branch to a conditional
> branch of the opposite condition and a unconditional branch.
Branches are only part of the problem, they could have been handled
at the assembler level pretty much.
The ZPU has variable length instructions that have to be calculated link
time.
E.g.
poppcrel N ; jump to PC relative address
The location of N(a global variable) relative affects the length of
the "poppcrel N"
instruction.
The above could be anything from a 2 byte to a 6 byte instruction.
This is all done in the gas + linker today in a close to optimal fashion.
It is conceivab...