diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-09-07 10:20:52 -0700 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-09-07 10:20:52 -0700 |
commit | 7f56d951fe4ad6749e68ac860ea05f572b6d04ed (patch) | |
tree | 3346bdedd8cbaa93eb6ca1b75332bc73648d0ae8 /salis | |
parent | 9779eecbee025d757df43b03a0dc27c5148245a5 (diff) |
Allow compiling ancestor at half of max address
Also makes code compatible with older versions of GCC.
Diffstat (limited to 'salis')
-rwxr-xr-x | salis | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -78,6 +78,7 @@ options=( "c|cores|N|number of simulator cores||2|bench:new" "F|muta-flip||cosmic rays flip bits instead of randomizing whole bytes||false|bench:new" "f|force||overwrite existing simulation of given name||false|new" + "H|half||compile ancestor at the middle of the memory buffer||false|bench:new" "h|help||${help_msg}|||bench:load:new" "M|muta-pow|POW|mutator range exponent (range == 2^POW)||32|bench:new" "m|mvec-pow|POW|memory vector size exponent (size == 2^POW)||20|bench:new" @@ -283,7 +284,7 @@ fpow() { printf '%#xul' $((1 << ${1})) } -bcmd="gcc src/salis.c -o ${salis_exe} ${gcc_flags} -Isrc -lncursesw" +bcmd="gcc src/salis.c -o ${salis_exe} ${gcc_flags} -Isrc -lncursesw -pthread" bcmd="${bcmd} `[[ ${opt_optimized} == true ]] && echo "-O3 -DNDEBUG" || echo "-ggdb"`" bcmd="${bcmd} -DACTION=${!act_var}" bcmd="${bcmd} -DARCHITECTURE=`fquote ${opt_arch}`" @@ -323,6 +324,7 @@ bench|new) done bcmd="${bcmd} -DANC_LIST=`fquote "${anc_list::-1}"`" + bcmd="${bcmd} -DANC_HALF=`[[ ${opt_half} == true ]] && echo 1 || echo 0`" ;; esac |