1diet(1)                     General Commands Manual                    diet(1)
2
3
4

NAME

6       diet - mangle gcc command line arguments
7

SYNOPSIS

9       diet [-v] [-Os] [normal gcc command line]
10

DESCRIPTION

12       diet  is  a  small wrapper around gcc or clang.  It will try to look at
13       the command line you specify and try to mangle  it  so  that  gcc/clang
14       will  compile  against  the diet libc header files and link against the
15       diet libc itself.
16
17       diet tries to be smart for cross compiling.  If the first  argument  is
18       not  gcc  but  sparc-linux-gcc,  diet will guess that you want to cross
19       compile  for  sparc  and  use  bin-sparc/dietlibc.a  instead   of   the
20       dietlibc.a  for  your  default architecture. This does not work yet for
21       clang.
22
23       The -v option will make diet print the modified gcc command line before
24       executing it.
25
26       When  passed  the  -Os option before the gcc argument, diet will mangle
27       the gcc options to include the best known  for-size  optimization  set‐
28       tings for the platform.
29

FILES

31       ~/.diet/compiler may contain compiler options as you would specify them
32       on the command line, i.e. separated by spaces.  Those will then be used
33       instead of the built-in defaults for diet -Os.
34

AUTHOR

36       Felix von Leitner <felix-dietlibc@fefe.de>
37
38
39
40                                  April 2001                           diet(1)
Impressum