File: diet.1

package info (click to toggle)
dietlibc 0.34~cvs20160606-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 11,336 kB
  • sloc: ansic: 71,631; asm: 13,006; cpp: 1,860; makefile: 799; sh: 292; perl: 62
file content (31 lines) | stat: -rw-r--r-- 1,177 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.TH diet 1 "April 2001"
.SH NAME
.PP
diet \- mangle gcc command line arguments
.SH SYNOPSIS
.PP
.B diet [-v] [-Os]
[\fInormal gcc command line\fP]
.SH DESCRIPTION
.PP
diet is a small wrapper around gcc or clang.  It will try to look at the command
line you specify and try to mangle it so that gcc/clang will compile against
the diet libc header files and link against the diet libc itself.

diet tries to be smart for cross compiling.  If the first argument is
not gcc but sparc-linux-gcc, diet will guess that you want to cross
compile for sparc and use bin-sparc/dietlibc.a instead of the dietlibc.a
for your default architecture. This does not work yet for clang.

The -v option will make diet print the modified gcc command line before
executing it.

When passed the -Os option before the gcc argument, diet will mangle the
gcc options to include the best known for-size optimization settings for
the platform.
.SH FILES
~/.diet/\fIcompiler\fR may contain compiler options as you would
specify them on the command line, i.e. separated by spaces.  Those will
then be used instead of the built-in defaults for diet -Os.
.SH AUTHOR
Felix von Leitner <felix-dietlibc@fefe.de>