What would be a good open source library with basic utility functions for use in the embedded system

I am thinking of something like glib , but perhaps in a thin version with a minimal footprint. This requires basic utilities such as linked lists, vectors, and hash tables. It should also have a minimum runtime.

+7
c embedded
source share
2 answers

Not really a library, but a tested, optimized and documented piece of code: sys/queue.h on * BSD and Linux systems have macros for various types of intrusive linked lists and queues.

+4
source share

uthash is a good hash table (full of macros), it also contains a linked list, a dynamic row, and dynamic array macros.

I also highly recommend sys/queue.h (suggested by larsmans) for simple and well-tested linked lists.

+1
source share

All Articles