Some experiments in C
Makefile Shell C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
binary-size
LICENSE.md
README.md

README.md

c-experiments

https://github.com/rsp/c-experiments

Some experiments with C.

Currently this is GCC-specific.

This is still work in progress and is not finished yet.

Prerequisites

  • make
  • gcc
  • possibly more...

It should work on any standard Linux/Unix distribution. If it doesn't, please sumbit an issue.

It was written and tested on Ubuntu 14.04.

Experiments

binary-size

Testing different tricks to see how they help reduce the binary size of C programs. This is inspired by How to create 4KB Linux binaries on Stack Overflow and especially this answer by Sebastian Mach where he explains the GCC options that he used in ntropy2007, a 4k flame fractal renderer, to make the binary smaller.

Author

Rafał Pocztarski - https://github.com/rsp

License

MIT License (Expat). See LICENSE.md for details.