summaryrefslogtreecommitdiff
path: root/docs/DIETCC.txt
blob: 2b3762fd6184049f132740c9a12523b5099f27e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
The basic idea is to replace

  gcc ... file.c ...

with

  gcc -E ... file.c ... -o preproc.c
  dietc preproc.c > diet.c
  pass1 diet.c > diet.c
  pass2 diet.c > diet.c
  ...
  gcc ... diet.c ...

To assist with this, we provide `scripts/dietcc`, which provides a drop-in
replacement for `gcc` that can run your patches. In your build scripts, simply
replace `gcc` with the path of `dietcc`.

You can insert your own compilation pass into dietcc; read its Python source
for examples.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback