1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-23 18:31:08 +00:00

faster, better C compile flags for SDCC

This commit is contained in:
Steven Hugg 2018-11-26 10:03:35 -05:00
parent 7b30bb74e6
commit fb418daf3d
2 changed files with 13 additions and 3 deletions

View File

@ -79,6 +79,7 @@ TODO:
- show player controls for each platform, allow touch support
- granular control over time scrubbing, show CPU state
- error showing replay div before rom starts
- compiler flags for final ROM build
WEB WORKER FORMAT

View File

@ -1130,16 +1130,25 @@ function compileSDCC(step:BuildStep) {
setupStdin(FS, code);
setupFS(FS, 'sdcc');
var args = ['--vc', '--std-sdcc99', '-mz80', //'-Wall',
'--c1mode', // '--debug',
'--c1mode',
//'--debug',
//'-S', 'main.c',
//'--asm=sdasz80',
//'--reserve-regs-iy',
'--less-pedantic',
///'--fomit-frame-pointer',
'--opt-code-speed',
//'--oldralloc', // TODO: does this make it fater?
'--oldralloc',
//'--cyclomatic',
//'--nooverlay','--nogcse','--nolabelopt','--noinvariant','--noinduction','--nojtbound','--noloopreverse','--no-peep','--nolospre',
//'--nooverlay',
//'--nogcse',
//'--nolabelopt',
//'--noinvariant',
//'--noinduction',
//'--nojtbound',
//'--noloopreverse',
'--no-peep',
'--nolospre',
'-o', outpath];
if (params.extra_compile_args) {
args.push.apply(args, params.extra_compile_args);