forked from sysprog21/rv32emu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Because RISC-V use jal instruction as function call, so we remove recursive jump tranlation to detect function call. 2. To identify memset, we analyze the pattern of the first basic block of memset for comparison. If the basic block aligns with the pattern, we extract the instruction sequence starting from the initial PC of the basic block and then compare it with the pre-recorded memset instruction sequence. Upon detecting a memset, we substitute the basic block with the standard library function memset. Based on performance results below, we gain 3% performance improvement when running coreMark and lost 1% performance when running dhrysone. The performance impact is resulted in the number of invoking memset times. | Metric | origin | proposed |Speedup|memset times| |------------+---------+----------+-------+------------| | Dhrystone | 2293.25 | 2267.00 | -1% | 4 | | CoreMark | 1881.41 | 1933.81 | +3% | 3124365 |
- Loading branch information
Yen-Fu Chen
committed
Aug 30, 2023
1 parent
98a149b
commit a4bbbb7
Showing
1 changed file
with
331 additions
and
3 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