Skip to content

Commit

Permalink
[Build tool] Added option to select SDCC compile complexity (max-allo…
Browse files Browse the repository at this point in the history
…cs-per-node) to allow strong optimization (with a compile time cost) + Logged the execution duration of each build steps
  • Loading branch information
aoineko-fr committed Jun 4, 2023
1 parent 6925b2e commit a0c0c3c
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/script/js/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ module.exports.compile = function (file, size, seg)
case "INSANE": MaxAllocs = 10000000; break;
default: MaxAllocs = CompileComplexity; break;
}
AddOpt += ` --max-allocs-per-node ${MaxAllocs}`;
if(MaxAllocs != 3000) // skip default value
AddOpt += ` --max-allocs-per-node ${MaxAllocs}`;
// set AddOpt=!AddOpt! --constseg RODATA

let SDCCParam = `-c -mz80 --vc -DTARGET=TARGET_${Target} -DMSX_VERSION=MSX_${Machine} -I${ProjDir} -I${LibDir}src -I${LibDir}content ${AddOpt} ${file} -o ${OutDir}`;
Expand Down
Binary file modified projects/samples/emul/dsk/BIN_USR_s_usr.dsk
Binary file not shown.
Binary file modified projects/samples/emul/dsk/BIN_s_game.dsk
Binary file not shown.
Binary file modified projects/samples/emul/dsk/DOS1_s_dos.dsk
Binary file not shown.
Binary file modified projects/samples/emul/dsk/DOS1_s_game.dsk
Binary file not shown.
Binary file modified projects/samples/emul/dsk/DOS1_s_zip.dsk
Binary file not shown.
Binary file modified projects/samples/emul/dsk/DOS2_s_dos2.dsk
Binary file not shown.
Binary file modified projects/samples/emul/dsk/DOS2_s_game.dsk
Binary file not shown.
Binary file modified projects/samples/emul/rom/s_game.rom
Binary file not shown.
Binary file modified projects/samples/emul/rom/s_ntap.rom
Binary file not shown.
Binary file modified projects/samples/emul/rom/s_swtile.rom
Binary file not shown.
Binary file modified projects/samples/emul/rom/s_sys.rom
Binary file not shown.

0 comments on commit a0c0c3c

Please sign in to comment.