Ustl Save Abandoned

A size-optimized STL implementation.

Project README

uSTL

This library is obsolete. Please use the official gcc C++ standard library.

uSTL is a partial implementation of the C++ standard library that focuses on decreasing the memory footprint of user executables. While some projects can use it to replace the standard library without any code changes, there exist important differences that you should be aware of. Please read documentation in docs/index.html before using this library in your project.

Then, after you've read it, consider whether you really want to make your project depend on a nonstandard standard library to get almost nothing for the trouble. uSTL is no longer significantly smaller than the standard library, but continues to have numerous incompatibilities that were required to get those space savings twenty years ago. So when I ask you to just use the standard library, I really do mean it!

Installation

The only dependency is a C++ compiler, gcc 5 or clang 3.6. Build configuration is in Config.mk and config.h, generated by configure. configure --help will list available configuration options.

./configure --prefix=/usr
make
make check
make install

Use

Here's a simple hello world application:

#include <ustl.h>
using namespace ustl;

int main (void)
{
    cout << "Hello world!\n";
    return EXIT_SUCCESS;
}

Compile the sources with g++, but link the executable with gcc. g++ will link with -lstdc++ by default, but to use uSTL you need to link with -lustl -lsupc++ instead. The right way to get this list of libraries is to use pkg-config --libs ustl. The pkg-config description file for uSTL is installed if you have pkg-config on your system.

Bugs

Report bugs on the github issue tracker

Open Source Agenda is not affiliated with "Ustl" Project. README Source: msharov/ustl
Stars
399
Open Issues
0
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating