~/talk

Compared Analysis of GCC Codegen for AArch64 and RISC-V

links:none on file
slides:none on file

Collected SPEC CPU2017 dynamic instruction count data on a Banana Pi F3–class config using fixed GCC builds and user‑mode QEMU with a hotspot plugin, comparing AArch64 (DSV2) vs RISC‑V (V). Key findings: a tight PARZ loop shows ~54–56% more dynamic instructions on RISC‑V because of missing scaled addressing mode (extra add then load), GCC generates extra moves instead of using the VFMA scalar form (patch cuts DIC ~4.7% but hardware timing only ~0.3%), memset calls cost ~21% of runtime on RISC‑V vs <1% on AArch64 (generic 46‑ins scalar fallbacks), and libm lacks target vector exps so RISC‑V sees ~32% instruction penalty.

AI-written summary · about

  1. 0:00Introduction
  2. 0:15Motivation and context
  3. 1:40Dynamic instruction count metric
  4. 2:24Experimental setup
  5. 3:06Benchmark results overview
  6. 4:09ISA-related addressing issue
  7. 5:56Compiler vector instruction issue
  8. 7:41Library function performance gap
  9. 9:50AI-enhanced library optimization
  10. 10:55Future improvements
  11. 11:39Ongoing analysis updates
  12. 12:00Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.