Hasty Briefsbeta

Comparison of Generic Container Libraries for C

11 days ago
  • #benchmark
  • #C-libraries
  • #STL-comparison
  • The project compares several C libraries providing STL-like capabilities for the C language.
  • A benchmark is included to evaluate performance, with test programs using basic types (int), non-POD types (GMP's mpz_t), and strings.
  • Test conditions include no memory leaks, no compilation warnings, proper execution, and dynamic linking with GMP if needed.
  • Programs must perform operations like declaring dynamic arrays, initializing, sorting, and iterating over elements.
  • Characteristics compared include C language support, type safety, container types, algorithms, and memory handling.
  • Libraries compared include M*LIB, STC, CMC, CTL, CollectionsC, CC, and GLIB, with C++ STL as a reference.
  • Detailed tables compare features like generic mechanisms, container support, and algorithm availability.
  • The project is a work in progress (WIP), and contributions are welcome to improve the comparison.