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

FILES

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

AUTHOR

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