aboutsummaryrefslogtreecommitdiff

The COSMOS codebase is a consolidated systems framework designed to ease development from application-level to bare-metal.

Features

  • Core
    • [X] Stack unwinding
    • Debugging
      • [X] Traces
      • [X] Backtraces
      • [X] Assertions
    • [X] Logging
    • Allocators
      • [X] General purpose allocators
      • [X] Bump allocator
      • [X] Arena allocator
      • [ ] Pool allocator
      • [ ] Slab allocator
    • Data structures
      • [X] Static Array
      • [X] Dynamic array
      • [X] Hash map
      • [ ] Linked list (ring)
  • [X] Argument parsing
  • [X] Build system
  • [ ] Regular Expressions
  • [ ] Metaprogramming
  • Compressed data formats
    • DEFLATE
      • [ ] Decoder
      • [ ] Encoder
    • ZLIB
      • [ ] Decoder
      • [ ] Encoder
  • Compressed file formats
    • GZIP
      • [ ] Decoder
      • [ ] Encoder
  • Archive file formats
    • TAR
      • [X] Decoder
      • [ ] Encoder
  • Executable file formats
    • ELF
      • [ ] Decoder
    • PE
      • [ ] Decoder
  • Debugging data formats
    • DWARF
      • [ ] Decoder
  • Image file formats
    • PNG
      • [ ] Decoder
    • JPEG
      • [ ] Decoder
    • Qoi
      • [ ] Decoder
      • [ ] Encoder
  • Audio coding formats
    • WAVE
      • [ ] Decoder
    • FLAC
      • [ ] Decoder
    • Opus
      • [ ] Decoder
  • Font file formats
    • SFNT
      • [ ] Decoder
    • TTF
      • [ ] Decoder
  • [ ] Graphics rendering
  • [ ] Graphics layout
  • [ ] Text shaping
  • [ ] User input
  • [ ] Audio playback

At some point, we should also make portable facades for: threads, processes, I/O, file system, networking and so on. For now, this can be done in application code, as we mostly work just with memory.

Target & Host Support

COSMOS aims for C99 compliance, avoids the use of compiler extensions and is designed to run across diverse host environments and target architectures.

Specifically, we want to target tcc for development, mingw32 cross-compilation for windows, bare-metal ARM/AVR and Wasm.

Building

Bootstrap cmk and get help:

cc -o cmk cmk.c && ./cmk -h

Usage

Read the code, take what you need, integrate as you want.

At some point, documentation will be provided in the Texinfo format.

Contributing

If you wish to submit patches, report issues, start a discussion or become a party member, send an email with the subject "COSMOS CONTRIBUTING" to martin@michalec.dev.

Acknowledgements

The architectural principles of this project draw upon the advanced experience and technical methods pioneered by great coders such as:

Support

If you find the COSMOS project useful and wish to support its continued development and maintenance, send an email with the subject "COSMOS SUPPORT" to martin@michalec.dev.

Copying

Distributed under the terms of the MIT License. See the LICENSE file for details. Retain the original copyright notice with any code appropriated for use.