diff options
Diffstat (limited to 'python/README.txt')
-rw-r--r-- | python/README.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/python/README.txt b/python/README.txt new file mode 100644 index 0000000..8129c48 --- /dev/null +++ b/python/README.txt @@ -0,0 +1,19 @@ +Python library for building dietcc passes + +Example of using a pass: + + The examples/zero_init pass zero-initializes all local variables. It can be + run by passing a --dietc-pass flag to dietcc: + + $ /path/to/dietcc examples/test_files/zero_init.c -Wuninitialized + ... warning: _xyz_3 is used ininitialized ... + $ ./a.out + Foo return value: 0 + Foo return value: 32765 + Foo return value: 32765 + $ /path/to/dietcc examples/test_files/zero_init.c --dietc-pass $PWD/examples/zero_init -Wuninitialized + [no warnings] + $ ./a.out + Foo return value: 0 + Foo return value: 0 + Foo return value: 0 |