Skip to content

Minimalistic standard (template) library #15

Description

@MartinUbl

Design and implement a minimalistic version of the standard C library and the standard template library (C++ STL). The C++ STD should be under a separate namespace, e.g., krstd:: (instead of std:: to avoid confusion due to non-conforming implementations).

The goal is not to have complete support, but rather to have a baseline for some implementations.

What would be convenient for C standard library:

  • memcpy, memcmp, memset, memmove, strcmp, strncmp, bzero, strlen, printf (sprintf, fprintf), floor, ceil, round, fabs
  • basic math functions (pow, sqrt, sin, cos, tan, exp, asin, atan, acos, log, log10)
  • basic file interface (fopen, fclose, fread, fwrite, fclose, fgets, fgetc, fputc, fputs, fseek, ftell)
  • string conversions (strtod, strtol, ...)

What would be convenient for C++ standard template library:

  • basic iterators and containers (std::array, vector, list, map, set)
  • string support (std::string)
  • etc. (to be specified)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestuserspaceUserspace-related (task, standard library, CRT0, etc.)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions