Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

diet(1) [redhat man page]

diet(1) 						      General Commands Manual							   diet(1)

NAME
diet - mangle gcc command line arguments SYNOPSIS
diet [-v] [-Os] [normal gcc command line] DESCRIPTION
diet is a small wrapper around gcc. It will try to look at the command line you specify and try to mangle it so that gcc 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. 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 set- tings for the platform. FILES
~/.diet/compiler 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. AUTHOR
Felix von Leitner <felix-dietlibc@fefe.de> April 2001 diet(1)

Check Out this Related Man Page

BUILDER-CC(1)							 Debian GNU/Linux						     BUILDER-CC(1)

NAME
builder-cc - gcc wrapper to facilitate pentium-optimizations SYNOPSIS
export DEBIAN_BUILDARCH=architecture export DEBIAN_BUILDGCCVER=gcc-version gcc ... DESCRIPTION
The builder-cc wrapper is normally used by calling gcc as usual. If the environment variable DEBIAN_BUILDARCH is not set, builder-cc does nothing, and the real gcc is invoked with the specified arguments. When the DEBIAN_BUILDARCH environment variable is set, builder-cc invokes gcc with the specified arguments, plus -mcpu=DEBIAN_BUILDARCH -march=DEBIAN_BUILDARCH This has the effect of telling gcc to use architecture-specific optimizations without changing the command line. This is particularly useful for package builds. If DEBIAN_BUILDGCCVER is not set, builder-cc calls gcc.real. If DEBIAN_BUILDGCCVER is set, builder-cc calls gcc-DEBIAN_BUILDGCCVER instead. ENVIRONMENT
DEBIAN_BUILDARCH If set, the architecture to compile for. Useful values are pentium or pentiumpro. DEBIAN_BUILDGCCVER If set, the version of gcc to be invoked. Useful values are 3.0 or 2.95. NOTES
The real gcc is renamed gcc.real, and a diversion is registered with dpkg-divert(1). Thus builder-cc's idea of the default gcc is dictated by whatever package installed /usr/bin/gcc. SEE ALSO
gcc(1) Debian Project 2002-03-02 BUILDER-CC(1)
Man Page