GithubHelp home page GithubHelp logo

sterbur / dietlibc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ensc/dietlibc

0.0 1.0 0.0 6.32 MB

Inofficial git-cvs clone of :pserver:[email protected]:/cvs + some changes

Home Page: http://www.fefe.de/dietlibc/

License: GNU General Public License v2.0

Makefile 1.07% Assembly 11.18% C 79.94% C++ 7.19% Shell 0.25% Objective-C 0.14% Roff 0.17% Perl 0.06%

dietlibc's Introduction

  The system library is a challenge to all those using the computer to
  write their own faster and better routines or to bow to the superior
  strength and skill of a true master.
 	--http://www.inner.net/users/cmetz/program-like-a-klingon

Use diet libc to statically link programs that don't need all the bloat
from glibc.

malloc, printf and scanf contributed from Olaf Dreesen.

To compile:

	$ make

make should compile the diet libc itself.

When make is done, it will have created dietlibc.a in bin-i386 (or
bin-ppc, bin-alpha, bin-sparc, bin-ppc or bin-arm, depending on your
architecture).  In that directory you will also find a program called
"diet", which you need to copy in a directory in your $PATH:

	# install bin-i386/diet /usr/local/bin

Then you can compile programs by prepending diet to the command line,
i.e.

	$ diet gcc -s -Os -pipe -o t t.c

diet is cross-compiler friendly and can also be used like this:

	$ diet sparc-linux-gcc -o t t.c

diet will then link against dietlibc.a from bin-sparc, of course.
diet comes with a man page (diet.1), which you can copy to an
appropriate location, too:

	# cp diet.1 /usr/local/man/man1

After you compiled the diet libc successfully, I invite you to check out
the embedded utils (http://www.fefe.de/embutils/).  The embedded utils
are small replacements for common utilities like mv, chown, ls, and even
a small tar that can extract tar files.


The license for the diet libc is the GNU General Public License, version
2 (as included in the file COPYING) or later.

dietlibc's People

Contributors

ensc avatar hollow avatar arsv avatar tenchman avatar outselldeploy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.