klcc(1)

NAME
klcc - compile a program against klibc

SYNOPSIS
klcc [gcc options] [-o outfile] infile...

DESCRIPTION

klcc is a wrapper around gcc(1) to compile a program against the klibc tiny C library. It supports most gcc options.

Unlike gcc, klcc compiles with optimization on by default. Furthermore, the optimization level used depends on whether or not -g is specified, since klcc frequently uses options in the normal case which makes debugging impossible. Therefore, compile without -g, -O, -f or -m option to use the default optimization level; this will generally result in the smallest binaries. You may want to use -s when linking, however.

Use the -shared or -static option to compile for and link against shared or static klibc. Note that shared klibc only supports running against the exact same klibc binary as the binary was linked with.

AUTHOR
Written by H. Peter Anvin <hpa@zytor.com>.

COPYRIGHT
Copyright © 2005 H. Peter Anvin.

SEE ALSO
gcc(1)