User Tools

Site Tools


6502 C compiler performance

Sorted in order of personal preference.

Note that picking your tool of choice by exact numbers is silly. A 1% gain here or there will not matter in a real-world scenario - stability and featuresets will matter much more. However, these are good in establishing a general ballpark of performance.

    • Tested compilers: cc65, gcc-6502, KickC, llvm-mos (via pull request), vbcc.
    • Seems to mostly be based on real-world/tutorial cc65 code snippets. Some have optimized ASM to compare against.
  • GGLabs benchmark (Source on website)
    • Tested compilers: cc65, gcc-6502, KickC, sdcc, vbcc.
    • Based on typical benchmark samples.
  • NESFab benchmark (Could not locate source.)
    • Tested compilers: cc65, gcc-6502, KickC, llvm-mos, vbcc.
    • No methodology; in addition, NESFab is more akin to a high-level assembler than a C compiler.
notes/homebrew/6502_cc_performance.txt · Last modified: 2023/09/27 17:03 by asie