Changeset 761e146 for doc/theses/andrew_beach_MMath/code
- Timestamp:
- Sep 2, 2021, 2:04:56 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
- Children:
- 81e0c61
- Parents:
- 24ebddac (diff), b183717 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- doc/theses/andrew_beach_MMath/code
- Files:
-
- 9 edited
- 10 moved
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/FixupEmpty.java
r24ebddac r761e146 1 public class ResumeFixupEmpty {1 public class FixupEmpty { 2 2 public interface Fixup { 3 3 public int op(int fixup); -
doc/theses/andrew_beach_MMath/code/FixupOther.java
r24ebddac r761e146 1 public class ResumeFixupOther {1 public class FixupOther { 2 2 public interface Fixup { 3 3 public int op(int fixup); -
doc/theses/andrew_beach_MMath/code/cond-catch.py
r24ebddac r761e146 32 32 33 33 end_time = thread_time_ns() 34 print('Run-Time (s) {:.1f}:'.format((end_time - start_time) / 1_000_000_000.))34 print('Run-Time (s): {:.1f}'.format((end_time - start_time) / 1_000_000_000.)) 35 35 36 36 -
doc/theses/andrew_beach_MMath/code/fixup-empty.py
r24ebddac r761e146 25 25 26 26 end_time = thread_time_ns() 27 print('Run-Time (s) {:.1f}:'.format((end_time - start_time) / 1_000_000_000.))27 print('Run-Time (s): {:.1f}'.format((end_time - start_time) / 1_000_000_000.)) 28 28 29 29 -
doc/theses/andrew_beach_MMath/code/fixup-other.py
r24ebddac r761e146 27 27 28 28 end_time = thread_time_ns() 29 print('Run-Time (s) {:.1f}:'.format((end_time - start_time) / 1_000_000_000.))29 print('Run-Time (s): {:.1f}'.format((end_time - start_time) / 1_000_000_000.)) 30 30 31 31 -
doc/theses/andrew_beach_MMath/code/run.sh
r24ebddac r761e146 1 1 #!/usr/bin/env bash 2 2 3 readonly ALL_TESTS=(raise-{empty,detor,finally,other} try-{catch,finally} cond-match-{all,none}\4 raise-{fixup-empty,fixup-other})3 readonly ALL_TESTS=(raise-{empty,detor,finally,other} try-{catch,finally} \ 4 cond-match-{all,none} fixup-{empty,other}) 5 5 6 6 gen-file-name() ( … … 18 18 ) 19 19 20 #readonly N=${1:-5}21 20 readonly N=${1:-1} 22 21 readonly OUT_FILE=$(gen-file-name ${2:-run-%-$N}) -
doc/theses/andrew_beach_MMath/code/test.sh
r24ebddac r761e146 13 13 # View the result from TEST in LANGUAGE stored in FILE. 14 14 15 readonly ITERS_1M=1000000 # 1 000 000, one million 16 readonly ITERS_10M=10000000 # 10 000 000, ten million 17 readonly ITERS_100M=100000000 # 100 000 000, hundred million 18 readonly ITERS_1000M=1000000000 # 1 000 000 000, billion 15 readonly MIL=000000 16 # Various preset values used as arguments. 17 readonly ITERS_1M=1$MIL 18 readonly ITERS_10M=10$MIL 19 readonly ITERS_100M=100$MIL 20 readonly ITERS_1000M=1000$MIL 19 21 readonly STACK_HEIGHT=100 20 22 … … 30 32 case "$1" in 31 33 *.cfa) 32 # Requires a symbolic link. 33 mmake "${1%.cfa}" "$1" cfa -DNDEBUG -nodebug -O3 "$1" -o "${1%.cfa}" 34 # A symbolic link/local copy can be used as an override. 35 cmd=./cfa 36 if [ ! -x $cmd ]; then 37 cmd=cfa 38 fi 39 mmake "${1%.cfa}" "$1" $cmd -DNDEBUG -nodebug -O3 "$1" -o "${1%.cfa}" 34 40 ;; 35 41 *.cpp) … … 83 89 raise-empty) 84 90 CFAT="./throw-empty $ITERS_1M $STACK_HEIGHT" 85 # see resume-fixup-empty-rCFAR="./resume-empty $ITERS_1M $STACK_HEIGHT"91 CFAR="./resume-empty $ITERS_1M $STACK_HEIGHT" 86 92 CPP="./throw-empty-cpp $ITERS_1M $STACK_HEIGHT" 87 93 JAVA="java ThrowEmpty $ITERS_1M $STACK_HEIGHT" … … 90 96 raise-detor) 91 97 CFAT="./throw-detor $ITERS_1M $STACK_HEIGHT" 92 # N/ACFAR="./resume-detor $ITERS_1M $STACK_HEIGHT"98 CFAR="./resume-detor $ITERS_1M $STACK_HEIGHT" 93 99 CPP="./throw-detor-cpp $ITERS_1M $STACK_HEIGHT" 94 100 JAVA=unsupported … … 97 103 raise-finally) 98 104 CFAT="./throw-finally $ITERS_1M $STACK_HEIGHT" 99 # N/ACFAR="./resume-finally $ITERS_1M $STACK_HEIGHT"105 CFAR="./resume-finally $ITERS_1M $STACK_HEIGHT" 100 106 CPP=unsupported 101 107 JAVA="java ThrowFinally $ITERS_1M $STACK_HEIGHT" … … 104 110 raise-other) 105 111 CFAT="./throw-other $ITERS_1M $STACK_HEIGHT" 106 # N/ACFAR="./resume-other $ITERS_1M $STACK_HEIGHT"112 CFAR="./resume-other $ITERS_1M $STACK_HEIGHT" 107 113 CPP="./throw-other-cpp $ITERS_1M $STACK_HEIGHT" 108 114 JAVA="java ThrowOther $ITERS_1M $STACK_HEIGHT" … … 137 143 PYTHON="./cond-catch.py $ITERS_10M 0" 138 144 ;; 139 raise-fixup-empty)140 CFAT="./ resume-fixup-empty-f $ITERS_10M $STACK_HEIGHT"141 CFAR="./ resume-fixup-empty-r $ITERS_10M $STACK_HEIGHT"142 CPP="./ resume-fixup-empty-cpp $ITERS_10M $STACK_HEIGHT"143 JAVA="java ResumeFixupEmpty $ITERS_10M $STACK_HEIGHT"144 PYTHON="./ resume-fixup-empty.py $ITERS_10M $STACK_HEIGHT"145 fixup-empty) 146 CFAT="./fixup-empty-f $ITERS_10M $STACK_HEIGHT" 147 CFAR="./fixup-empty-r $ITERS_10M $STACK_HEIGHT" 148 CPP="./fixup-empty-cpp $ITERS_10M $STACK_HEIGHT" 149 JAVA="java FixupEmpty $ITERS_10M $STACK_HEIGHT" 150 PYTHON="./fixup-empty.py $ITERS_10M $STACK_HEIGHT" 145 151 ;; 146 raise-fixup-other)147 CFAT="./ resume-fixup-other-f $ITERS_10M $STACK_HEIGHT"148 CFAR="./ resume-fixup-other-r $ITERS_10M $STACK_HEIGHT"149 CPP="./ resume-fixup-other-cpp $ITERS_10M $STACK_HEIGHT"150 JAVA="java ResumeFixupOther $ITERS_10M $STACK_HEIGHT"151 PYTHON="./ resume-fixup-other.py $ITERS_10M $STACK_HEIGHT"152 fixup-other) 153 CFAT="./fixup-other-f $ITERS_10M $STACK_HEIGHT" 154 CFAR="./fixup-other-r $ITERS_10M $STACK_HEIGHT" 155 CPP="./fixup-other-cpp $ITERS_10M $STACK_HEIGHT" 156 JAVA="java FixupOther $ITERS_10M $STACK_HEIGHT" 157 PYTHON="./fixup-other.py $ITERS_10M $STACK_HEIGHT" 152 158 ;; 153 159 *) -
doc/theses/andrew_beach_MMath/code/throw-empty.py
r24ebddac r761e146 33 33 34 34 end_time = thread_time_ns() 35 print('Run-Time (s) {:.1f}:'.format((end_time - start_time) / 1_000_000_000.))35 print('Run-Time (s): {:.1f}'.format((end_time - start_time) / 1_000_000_000.)) 36 36 37 37 -
doc/theses/andrew_beach_MMath/code/throw-finally.py
r24ebddac r761e146 36 36 37 37 end_time = thread_time_ns() 38 print('Run-Time (s) {:.1f}:'.format((end_time - start_time) / 1_000_000_000.))38 print('Run-Time (s): {:.1f}'.format((end_time - start_time) / 1_000_000_000.)) 39 39 40 40 -
doc/theses/andrew_beach_MMath/code/throw-other.py
r24ebddac r761e146 40 40 41 41 end_time = thread_time_ns() 42 print('Run-Time (s) {:.1f}:'.format((end_time - start_time) / 1_000_000_000.))42 print('Run-Time (s): {:.1f}'.format((end_time - start_time) / 1_000_000_000.)) 43 43 44 44 -
doc/theses/andrew_beach_MMath/code/throw-with.py
r24ebddac r761e146 43 43 44 44 end_time = thread_time_ns() 45 print('Run-Time (s) {:.1f}:'.format((end_time - start_time) / 1_000_000_000.))45 print('Run-Time (s): {:.1f}'.format((end_time - start_time) / 1_000_000_000.)) 46 46 47 47 -
doc/theses/andrew_beach_MMath/code/try-catch.py
r24ebddac r761e146 23 23 24 24 end_time = thread_time_ns() 25 print('Run-Time (s) {:.1f}:'.format((end_time - start_time) / 1_000_000_000.))25 print('Run-Time (s): {:.1f}'.format((end_time - start_time) / 1_000_000_000.)) 26 26 27 27 -
doc/theses/andrew_beach_MMath/code/try-finally.py
r24ebddac r761e146 22 22 23 23 end_time = thread_time_ns() 24 print('Run-Time (s) {:.1f}:'.format((end_time - start_time) / 1_000_000_000.))24 print('Run-Time (s): {:.1f}'.format((end_time - start_time) / 1_000_000_000.)) 25 25 26 26
Note:
See TracChangeset
for help on using the changeset viewer.