Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: kernel: Shared NEXT saves about 256 bytes out of 1 KiB
So it might be worth doing. The key parts of the runtime - doconst, docolon etc - have their copies of NEXT for speed, but the rest of the code words that make up the kernel share a single copy and simply jump to it instead of including it inline. For every jump that replaces NEXT, 12 bytes are saved. It's also very easy to turn this on and off.
- Loading branch information
1 parent
1ba0aa3
commit e6588d8
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters