summaryrefslogtreecommitdiff
path: root/c/README.txt
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2023-07-30 14:38:43 -0700
committerMatthew Sotoudeh <matthew@masot.net>2023-07-30 14:38:43 -0700
commit4de60a709d3af497781b7467f2c6fe7e09b39595 (patch)
treea9c4b70c6e87f37f9b69d77153c7cda10a60e043 /c/README.txt
parent678b0d4a2ec15db0735d08ebafec55605ce0a688 (diff)
basic libdietc for writing passes in C
Diffstat (limited to 'c/README.txt')
-rw-r--r--c/README.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/c/README.txt b/c/README.txt
new file mode 100644
index 0000000..50450aa
--- /dev/null
+++ b/c/README.txt
@@ -0,0 +1,18 @@
+C library for building dietcc passes
+
+Example of using a pass:
+
+ The examples/zero_init pass zero-initializes all local variables.
+
+ $ which dietcc
+ [make sure it's on your path!]
+ $ cd examples/zero_init
+ $ make -B
+ $ ./default
+ Foo return value: 0
+ Foo return value: 32765
+ Foo return value: 32765
+ $ ./instrumented
+ Foo return value: 0
+ Foo return value: 0
+ Foo return value: 0
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback