aboutsummaryrefslogtreecommitdiff
path: root/win32/examples/demo.bat
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-04-10 07:46:04 +0300
committerseyko <seyko2@gmail.com>2015-04-10 07:46:04 +0300
commite92dc595cd10405b3ed14b2663affeb50b47e169 (patch)
tree9bb5271db5fbd0f80917079316bb85628e0efe84 /win32/examples/demo.bat
parent7e7e6148fdb4adbda936f80b5d4ac3d738908d95 (diff)
downloadtinycc-e92dc595cd10405b3ed14b2663affeb50b47e169.tar.gz
tinycc-e92dc595cd10405b3ed14b2663affeb50b47e169.tar.bz2
Add a demo.bat file to the examples directory on Windows
And a new console demo program: taxi and passengers simulator
Diffstat (limited to 'win32/examples/demo.bat')
-rw-r--r--win32/examples/demo.bat22
1 files changed, 22 insertions, 0 deletions
diff --git a/win32/examples/demo.bat b/win32/examples/demo.bat
new file mode 100644
index 0000000..3be48ae
--- /dev/null
+++ b/win32/examples/demo.bat
@@ -0,0 +1,22 @@
+@echo off
+
+@rem Compute 10th Fibonacci number
+tcc fib.c
+fib 10
+del fib.exe
+
+@rem hello_win.c
+tcc hello_win.c
+hello_win
+del hello_win.exe
+
+@rem 'Hello DLL' example
+tcc -shared dll.c
+tcc hello_dll.c dll.def
+hello_dll
+del hello_dll.exe dll.def dll.dll
+
+@rem a console threaded program
+tcc taxi_simulator.c
+taxi_simulator
+del taxi_simulator.exe