├── .gitignore ├── LICENSE ├── README.rst ├── code_samples ├── ccgame │ ├── README.rst │ ├── dummy_function.c │ ├── game_01_start.c │ ├── game_12_final.c │ ├── game_12_final_gcc.c │ ├── game_modern_optims.c │ ├── game_modern_optims_light.c │ └── game_modern_optims_structarray.c ├── coroutine │ ├── README.rst │ ├── coroutine.c │ └── coroutine_easy.c ├── memcpy │ ├── README.rst │ ├── dummy_bench_routine.c │ ├── memcpy_8bit_asm.s │ ├── memcpy_8bit_asm_static.s │ ├── memcpy_8bit_asm_style.c │ ├── memcpy_8bit_c_style.c │ ├── memcpy_8bit_c_style_bench.c │ └── memcpy_8bit_c_style_static.c ├── rpg │ ├── README.rst │ ├── rpg.c │ └── rpg_cc65.c └── unzip │ ├── README.rst │ ├── kickc_unzip.c │ ├── kickc_unzip_data.c │ ├── unzip.c │ ├── unzip.s │ └── unzip_data.s ├── compilers ├── 6502-gcc │ ├── bench │ ├── bench.s │ └── ld65.cfg ├── asm │ ├── bench │ ├── bench.s │ └── ld65.cfg ├── cc65 │ ├── bench │ ├── bench.s │ └── ld65.cfg ├── kickc │ ├── asm_convert │ ├── bench │ ├── bench.c │ └── ld65.cfg ├── llvm-mos-native │ ├── bench │ ├── bench.c │ ├── clang.cfg │ └── link.ld ├── vbcc-native │ ├── bench │ ├── bench.c │ ├── bench_vm.cfg │ └── bench_vm.cmd └── vbcc │ ├── asm_convert │ ├── bench │ ├── bench.s │ └── ld65.cfg ├── emulator ├── emulator.cpp └── mos6502 │ ├── LICENSE.txt │ ├── README.md │ ├── mos6502.cpp │ └── mos6502.h └── my_bench.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/LICENSE -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/README.rst -------------------------------------------------------------------------------- /code_samples/ccgame/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/ccgame/README.rst -------------------------------------------------------------------------------- /code_samples/ccgame/dummy_function.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/ccgame/dummy_function.c -------------------------------------------------------------------------------- /code_samples/ccgame/game_01_start.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/ccgame/game_01_start.c -------------------------------------------------------------------------------- /code_samples/ccgame/game_12_final.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/ccgame/game_12_final.c -------------------------------------------------------------------------------- /code_samples/ccgame/game_12_final_gcc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/ccgame/game_12_final_gcc.c -------------------------------------------------------------------------------- /code_samples/ccgame/game_modern_optims.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/ccgame/game_modern_optims.c -------------------------------------------------------------------------------- /code_samples/ccgame/game_modern_optims_light.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/ccgame/game_modern_optims_light.c -------------------------------------------------------------------------------- /code_samples/ccgame/game_modern_optims_structarray.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/ccgame/game_modern_optims_structarray.c -------------------------------------------------------------------------------- /code_samples/coroutine/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/coroutine/README.rst -------------------------------------------------------------------------------- /code_samples/coroutine/coroutine.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/coroutine/coroutine.c -------------------------------------------------------------------------------- /code_samples/coroutine/coroutine_easy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/coroutine/coroutine_easy.c -------------------------------------------------------------------------------- /code_samples/memcpy/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/memcpy/README.rst -------------------------------------------------------------------------------- /code_samples/memcpy/dummy_bench_routine.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/memcpy/dummy_bench_routine.c -------------------------------------------------------------------------------- /code_samples/memcpy/memcpy_8bit_asm.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/memcpy/memcpy_8bit_asm.s -------------------------------------------------------------------------------- /code_samples/memcpy/memcpy_8bit_asm_static.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/memcpy/memcpy_8bit_asm_static.s -------------------------------------------------------------------------------- /code_samples/memcpy/memcpy_8bit_asm_style.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/memcpy/memcpy_8bit_asm_style.c -------------------------------------------------------------------------------- /code_samples/memcpy/memcpy_8bit_c_style.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/memcpy/memcpy_8bit_c_style.c -------------------------------------------------------------------------------- /code_samples/memcpy/memcpy_8bit_c_style_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/memcpy/memcpy_8bit_c_style_bench.c -------------------------------------------------------------------------------- /code_samples/memcpy/memcpy_8bit_c_style_static.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/memcpy/memcpy_8bit_c_style_static.c -------------------------------------------------------------------------------- /code_samples/rpg/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/rpg/README.rst -------------------------------------------------------------------------------- /code_samples/rpg/rpg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/rpg/rpg.c -------------------------------------------------------------------------------- /code_samples/rpg/rpg_cc65.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/rpg/rpg_cc65.c -------------------------------------------------------------------------------- /code_samples/unzip/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/unzip/README.rst -------------------------------------------------------------------------------- /code_samples/unzip/kickc_unzip.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/unzip/kickc_unzip.c -------------------------------------------------------------------------------- /code_samples/unzip/kickc_unzip_data.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/unzip/kickc_unzip_data.c -------------------------------------------------------------------------------- /code_samples/unzip/unzip.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/unzip/unzip.c -------------------------------------------------------------------------------- /code_samples/unzip/unzip.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/unzip/unzip.s -------------------------------------------------------------------------------- /code_samples/unzip/unzip_data.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/code_samples/unzip/unzip_data.s -------------------------------------------------------------------------------- /compilers/6502-gcc/bench: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/6502-gcc/bench -------------------------------------------------------------------------------- /compilers/6502-gcc/bench.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/6502-gcc/bench.s -------------------------------------------------------------------------------- /compilers/6502-gcc/ld65.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/6502-gcc/ld65.cfg -------------------------------------------------------------------------------- /compilers/asm/bench: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/asm/bench -------------------------------------------------------------------------------- /compilers/asm/bench.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/asm/bench.s -------------------------------------------------------------------------------- /compilers/asm/ld65.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/asm/ld65.cfg -------------------------------------------------------------------------------- /compilers/cc65/bench: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/cc65/bench -------------------------------------------------------------------------------- /compilers/cc65/bench.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/cc65/bench.s -------------------------------------------------------------------------------- /compilers/cc65/ld65.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/cc65/ld65.cfg -------------------------------------------------------------------------------- /compilers/kickc/asm_convert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/kickc/asm_convert -------------------------------------------------------------------------------- /compilers/kickc/bench: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/kickc/bench -------------------------------------------------------------------------------- /compilers/kickc/bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/kickc/bench.c -------------------------------------------------------------------------------- /compilers/kickc/ld65.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/kickc/ld65.cfg -------------------------------------------------------------------------------- /compilers/llvm-mos-native/bench: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/llvm-mos-native/bench -------------------------------------------------------------------------------- /compilers/llvm-mos-native/bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/llvm-mos-native/bench.c -------------------------------------------------------------------------------- /compilers/llvm-mos-native/clang.cfg: -------------------------------------------------------------------------------- 1 | -mlto-zp=224 2 | -------------------------------------------------------------------------------- /compilers/llvm-mos-native/link.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/llvm-mos-native/link.ld -------------------------------------------------------------------------------- /compilers/vbcc-native/bench: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/vbcc-native/bench -------------------------------------------------------------------------------- /compilers/vbcc-native/bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/vbcc-native/bench.c -------------------------------------------------------------------------------- /compilers/vbcc-native/bench_vm.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/vbcc-native/bench_vm.cfg -------------------------------------------------------------------------------- /compilers/vbcc-native/bench_vm.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/vbcc-native/bench_vm.cmd -------------------------------------------------------------------------------- /compilers/vbcc/asm_convert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/vbcc/asm_convert -------------------------------------------------------------------------------- /compilers/vbcc/bench: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/vbcc/bench -------------------------------------------------------------------------------- /compilers/vbcc/bench.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/vbcc/bench.s -------------------------------------------------------------------------------- /compilers/vbcc/ld65.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/compilers/vbcc/ld65.cfg -------------------------------------------------------------------------------- /emulator/emulator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/emulator/emulator.cpp -------------------------------------------------------------------------------- /emulator/mos6502/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/emulator/mos6502/LICENSE.txt -------------------------------------------------------------------------------- /emulator/mos6502/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/emulator/mos6502/README.md -------------------------------------------------------------------------------- /emulator/mos6502/mos6502.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/emulator/mos6502/mos6502.cpp -------------------------------------------------------------------------------- /emulator/mos6502/mos6502.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/emulator/mos6502/mos6502.h -------------------------------------------------------------------------------- /my_bench.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sgadrat/6502-compilers-bench/HEAD/my_bench.sh --------------------------------------------------------------------------------