1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-29 14:51:17 +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 - show player controls for each platform, allow touch support
- granular control over time scrubbing, show CPU state - granular control over time scrubbing, show CPU state
- error showing replay div before rom starts - error showing replay div before rom starts
- compiler flags for final ROM build
WEB WORKER FORMAT WEB WORKER FORMAT

View File

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