Next: , Previous: , Up: Appendices   [Contents][Index]


A.5 List of Examples

Example 4.1

tc simple.tig

Example 4.2

SCAN=1 PARSE=1 tc -X --parse simple.tig

Example 4.3

tc -X --parse back-zee.tig

Example 4.4

tc -X --parse postinc.tig

Example 4.5

tc -X --parse test01.tig

Example 4.6

tc -X --parse unterminated-comment.tig

Example 4.7

tc -X --parse type-nil.tig

Example 4.8

tc C:/TIGER/SAMPLE.TIG

Example 4.9

tc -X --parse-trace --parse a+a.tig

Example 4.10

tc -XA simple-fact.tig

Example 4.11

tc -XA string-escapes.tig

Example 4.12

tc -XA 1s-and-2s.tig

Example 4.13

tc -XA 1s-and-2s.tig >output.tig

Example 4.14

tc -XA output.tig

Example 4.15

tc -XA for-loop.tig

Example 4.16

tc -XA parens.tig

Example 4.17

tc -b foo-bar.tig

Example 4.18

tc -b foo-stop-bar.tig

Example 4.19

tc -b fbfsb.tig

Example 4.20

tc multiple-parse-errors.tig

Example 4.21

tc -XA multiple-parse-errors.tig

Example 4.22

tc -XbBA me.tig

Example 4.23

tc -XbBA meme.tig

Example 4.24

tc -bBA nome.tig

Example 4.25

tc -bBA tome.tig

Example 4.26

tc -XbBA breaks-in-embedded-loops.tig

Example 4.27

tc -b break.tig

Example 4.28

tc -XbBA box.tig

Example 4.29

tc -T box.tig

Example 4.30

tc -XbBA unknown-field-type.tig

Example 4.31

tc -X --object-bindings-compute -BA bad-member-bindings.tig

Example 4.32

tc --object-types-compute bad-member-bindings.tig

Example 4.33

tc -X --object-bindings-compute -BA missing-super-class.tig

Example 4.34

tc -X --rename -A as.tig

Example 4.35

tc -XEAeEA variable-escapes.tig

Example 4.36

tc -e undefined-variable.tig

Example 4.37

tc int-plus-string.tig

Example 4.38

tc -T int-plus-string.tig

Example 4.39

tc -T assign-loop-var.tig

Example 4.40

tc -T unknowns.tig

Example 4.41

tc -T bad-if.tig

Example 4.42

tc -T mutuals.tig

Example 4.43

tc -H mutuals.tig >mutuals.hir

Example 4.44

havm mutuals.hir

Example 4.45

tc --object-types-compute bad-super-type.tig

Example 4.46

tc --object-types-compute forward-reference-to-class.tig

Example 4.47

tc -T is_devil.tig

Example 4.48

tc --desugar-string-cmp --desugar -A string-equality.tig

Example 4.49

tc --desugar-string-cmp --desugar -A string-less.tig

Example 4.50

tc --desugar-for --desugar -A simple-for-loop.tig

Example 4.51

tc -X --inline -A sub.tig

Example 4.52

tc --bounds-checks-add -A subscript-read.tig

Example 4.53

tc --bounds-checks-add -L subscript-read.tig >subscript-read.lir

Example 4.54

havm subscript-read.lir

Example 4.55

tc --bounds-checks-add -A subscript-write.tig

Example 4.56

tc --bounds-checks-add -S subscript-write.tig >subscript-write.s

Example 4.57

nolimips -l nolimips -Nue subscript-write.s

Example 4.58

tc -Xb sizes.tig

Example 4.59

tc -X --overfun-bindings-compute -BA sizes.tig

Example 4.60

tc -XOBA sizes.tig

Example 4.61

tc -XO over-amb.tig

Example 4.62

tc -XO over-duplicate.tig

Example 4.63

tc -XOBA over-scoped.tig

Example 4.64

tc -X --object-desugar -A empty-class.tig

Example 4.65

tc -X --object-desugar -A simple-class.tig

Example 4.66

tc --object-desugar -A override.tig

Example 4.67

tc --object-desugar -L override.tig >override.lir

Example 4.68

havm override.lir

Example 4.69

tc --hir-display 0.tig

Example 4.70

tc -H arith.tig

Example 4.71

tc -H arith.tig >arith.hir

Example 4.72

havm arith.hir

Example 4.73

havm --trace arith.hir

Example 4.74

tc -H if-101.tig

Example 4.75

tc -H while-101.tig

Example 4.76

tc --hir-naive -H boolean.tig

Example 4.77

tc --hir-naive -H boolean.tig >boolean-1.hir

Example 4.78

havm --profile boolean-1.hir

Example 4.79

tc -H boolean.tig

Example 4.80

tc -H boolean.tig >boolean-2.hir

Example 4.81

havm --profile boolean-2.hir

Example 4.82

tc -H print-101.tig >print-101.hir

Example 4.83

havm print-101.hir

Example 4.84

tc -H print-array.tig

Example 4.85

tc -H print-array.tig >print-array.hir

Example 4.86

havm print-array.hir

Example 4.87

tc -H vars.tig

Example 4.88

tc -eH vars.tig

Example 4.89

tc -eH vars.tig >vars.hir

Example 4.90

havm vars.hir

Example 4.91

tc -H fact15.tig

Example 4.92

tc -H fact15.tig >fact15.hir

Example 4.93

havm fact15.hir

Example 4.94

tc -eH variable-escapes.tig

Example 4.95

tc -eH preincr-1.tig

Example 4.96

tc -eL preincr-1.tig

Example 4.97

tc -eL preincr-2.tig

Example 4.98

tc -eH preincr-2.tig >preincr-2.hir

Example 4.99

havm preincr-2.hir

Example 4.100

tc -eL preincr-2.tig >preincr-2.lir

Example 4.101

havm preincr-2.lir

Example 4.102

tc -eL move-mem.tig >move-mem.lir

Example 4.103

havm move-mem.lir

Example 4.104

tc -L nested-calls.tig

Example 4.105

tc -L seq-point.tig >seq-point.lir

Example 4.106

havm seq-point.lir

Example 4.107

tc -L 1-and-2.tig

Example 4.108

tc -H broken-while.tig

Example 4.109

tc -L broken-while.tig

Example 4.110

tc --inst-display the-answer.tig

Example 4.111

tc --nolimips-display the-answer.tig

Example 4.112

tc -sI the-answer.tig

Example 4.113

tc -e --inst-display add.tig

Example 4.114

tc -eR --nolimips-display add.tig >add.nolimips

Example 4.115

nolimips -l nolimips -Nue add.nolimips

Example 4.116

tc -e --nolimips-display substring-0-1-1.tig

Example 4.117

tc -eR --nolimips-display substring-0-1-1.tig >substring-0-1-1.nolimips

Example 4.118

nolimips -l nolimips -Nue substring-0-1-1.nolimips

Example 4.119

tc -I tens.tig

Example 4.120

tc -FVN tens.tig

Example 4.121

tc --callee-save=0 -VN hundreds.tig

Example 4.122

tc --callee-save=0 -I ors.tig

Example 4.123

tc -FVN ors.tig

Example 4.124

tc -sV and.tig

Example 4.125

tc -sI seven.tig

Example 4.126

tc -S seven.tig >seven.s

Example 4.127

nolimips -l nolimips -Ne seven.s

Example 4.128

tc -s --tempmap-display seven.tig

Example 4.129

tc -sI print-seven.tig

Example 4.130

tc -S print-seven.tig >print-seven.s

Example 4.131

nolimips -l nolimips -Ne print-seven.s

Example 4.132

tc -eIs --tempmap-display -I --time-report print-many.tig

Example 4.133

tc --target-ia32 --inst-display the-answer-ia32.tig

Example 4.134

tc --target-ia32 -sI the-answer-ia32.tig

Example 4.135

tc -e --target-ia32 --inst-display add-ia32.tig

Example 4.136

tc -e --target-ia32 --asm-compute --inst-display add-ia32.tig

Example 4.137

tc -e --target-ia32 --asm-display add-ia32.tig >add-ia32.s

Example 4.138

gcc -m32 -oadd-ia32 add-ia32.s

Example 4.139

./add-ia32

Example 4.140

tc -e --target-ia32 --inst-display substring-0-1-1-ia32.tig

Example 4.141

tc -e --target-ia32 --asm-compute --inst-display substring-0-1-1-ia32.tig

Example 4.142

tc -e --target-ia32 --asm-display substring-0-1-1-ia32.tig >substring-0-1-1-ia32.s

Example 4.143

gcc -m32 -osubstring-0-1-1-ia32 substring-0-1-1-ia32.s

Example 4.144

./substring-0-1-1-ia32

Example 4.145

tc -e --target-ia32 --inst-display condjump-ia32.tig

Example 4.146

tc -e --target-ia32 --asm-compute --inst-display condjump-ia32.tig

Example 4.147

tc --target-arm --inst-display the-answer-arm.tig

Example 4.148

tc --target-arm -sI the-answer-arm.tig

Example 4.149

tc -e --target-arm --inst-display add-arm.tig

Example 4.150

tc -e --target-arm --inst-display substring-0-1-1-arm.tig

Example 4.151

tc -e --target-arm --asm-compute --inst-display substring-0-1-1-arm.tig

Example 4.152

tc -e --target-arm --inst-display condjump-arm.tig

Example 4.153

tc -e --target-arm --asm-compute --inst-display condjump-arm.tig

Example 4.154

tc --target-arm -S print-int-arm.tig >print-int-arm.s

Example 4.155

arm-linux-gnueabihf-gcc-7 -march=armv7-a -oprint-int print-int-arm.s

Example 4.156

qemu-arm -L /usr/arm-linux-gnueabihf ./print-int

Example 4.157

tc --llvm-display the-answer-llvm.tig

Example 4.158

tc --llvm-display add-llvm.tig

Example 4.159

tc --llvm-runtime-display --llvm-display add-llvm.tig

Example 4.160

tc --llvm-runtime-display --llvm-display add-llvm.tig >add-llvm.ll

Example 4.161

clang -m32 -oadd-llvm add-llvm.ll

Example 4.162

./add-llvm

Example 4.163

clang -m32 -S -emit-llvm -o - clang-example.c

Example 5.1

v tc -XA 0.tig

Example A.1

tc --version

Example A.2

havm --version

Example A.3

nolimips --version


Next: , Previous: , Up: Appendices   [Contents][Index]