C-haste Library. A collection of utilities to make developing C programs fast and easy.
C Python Groff C++ XC Shell Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
asm Significant resturcturing, initial work on an array list data structu… Sep 5, 2013
build/cake Added cake again to be sure that things work Nov 18, 2015
data_structs Minor updates. Dec 18, 2015
demos Got chaste master to cleanly build on linux Nov 18, 2015
hash_functions/spooky Added skeleton for function hash map Sep 25, 2013
log Minor fixes. Made the hex dumper const, fixed the number of digits pr… Mar 13, 2016
options Got libchaste to build on OSX 10.10.2 Apr 23, 2015
parsing Minor bug fixes Jul 22, 2015
perf turned off perf except in debug mode Aug 5, 2015
scripts Significant resturcturing, initial work on an array list data structu… Sep 5, 2013
string Minor fixes, pushing out of paranioa Feb 6, 2014
sys Bug fixes and minor improvements Nov 14, 2015
term_color Working on getting options working again Sep 16, 2013
tests Added cake again to be sure that things work Nov 18, 2015
timing Minor fixes. Made the hex dumper const, fixed the number of digits pr… Mar 13, 2016
types Got chaste master to cleanly build on linux Nov 18, 2015
utils Minor fixes. Made the hex dumper const, fixed the number of digits pr… Mar 13, 2016
.cproject Added skeleton for function hash map Sep 25, 2013
.gitignore Cleaned up the build, there is now a release build script and a debug… Sep 19, 2013
.project Made and debugged the array data structure Sep 11, 2013
LICENSE Cleaned up the build, there is now a release build script and a debug… Sep 19, 2013
README Update README Mar 13, 2016
build.sh Got chaste master to cleanly build on linux Nov 18, 2015
build_mac.sh Added a mac build script. Builds on mac again Nov 18, 2015
build_release.sh Added command to touch an empy file with the git commit ID in the rel… Sep 19, 2013
chaste.c Got the linked list to compile, unit testing next Sep 20, 2013
chaste.h Lots of little bug fixes Apr 11, 2014
from_macro.py Got the typed vector to run Sep 12, 2013
make_macro.py Restructured array generics to make it more maintainable Sep 12, 2013
makeinclude.py Cleaned up the build, there is now a release build script and a debug… Sep 19, 2013
makeinclude.sh Cleaned up the build, there is now a release build script and a debug… Sep 19, 2013

README

-------------------------------------------------------------------------------
Pure, virtuous, unadulterated programming bliss - hastily assembled C programs.
-------------------------------------------------------------------------------

The C-Haste Library (libchaste)
===============================

License:
--------
See LICENSE file included. TL;DR - BSD 3 Clause. 


Main features:
--------------
Data structures: generic, type safe array, vector and linked list (hash map partially implemented)

Type safe command line options parser with super simple syntax, usage text etc. 

Powerful logging with runtime and compile time log level tuning, coloured output. 


Todo/In progress
-----------------
Architecture agnositc performance monitoring and measuring tools around RDTSC/PMC/PDU 

Yet another string library to efficiently do useful string manipulations using nice macros to make 


Currently builds on:
---------------------
    - x86 Linux (Ubtuntu 12.10/13.04) (clang 3.2 and gcc 4.6-4.8)
    - x86 Darwin (Mac OSX 10.10/10.11) (clang 7.0)

Targeted to build on: 
    - Linux/BSD/Darwin (OS X)
    - 32bit/64bit (64bit optimized)
    - ARM / x86


Obtaining the source: 
----------------------

The C-Haste library is available at https://github.com/mgrosvenor/libchaste 

- The master branch is a "stable" "release" candidate -- the bleeding edge - guaranteed compile and pass unit tests -- API may vary wildly. 
- Release branches are stable, tagged with the release ID. Incremental fixes to a release will be tags added to the release branch. Bug fixes only. No new features. No new APIs. 


Building
---------

Libchaste builds on both gcc 4.6 and clang 3.2 against the c11 standard with pedantic warnings and errors using the Posix 2008 system API. 

It includes a set of unit tests and infrastructure for making them all running and passing valgrind tests. 

- run build.sh to build a debug libcahste.a binary in the bin/ directory. 
- run build_release.sh to build a release binary libcahste.tar.bz 

Requirements
-------------
Cake build system - https://github.com/Zomojo/Cake
Clang 3.2+ / GCC 4.6+