[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[f-cpu] Relative branch



Just short idea, I was found that in compiled
code for fcpu is missing shorter/faster jump.

Why dont we have jump which instead of registers
to use as return address save and target adres
have instead 12bit immediate which would REPLACE
lower 8 bits (for example) of IP.
There is no problem with TLB because smallest page
is 4k (12bits) so that we could jump only in the same
page. It also meand no adder is needed.
Compiler would emit appropriate .align for the code.
This would help small conditional branches, save
code size and register usage ...

devik

*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/