Skip to content

nickscha/thrive

Repository files navigation

thrive

Low Level Programming Language inbetween Assembly and C (THRIVE).

Warning

THIS PROJECT IS A WORK IN PROGRESS! ANYTHING CAN CHANGE AT ANY MOMENT WITHOUT ANY NOTICE! USE THIS PROJECT AT YOUR OWN RISK!

Latest Release Downloads License C Standard nostdlib

Features

  • Procedural - No mixed declarations, ...
  • Proper sized types — b8,s8,u32,i32,f32,...
  • No header files -
  • No standard library -

Language Specification

Types

s8, s16, s32      ; String 
b8, b16, b32, b64 ; Boolean 
u8, u16, u32, u64 ; Unsigned
i8, i16, i32, i64 ; Signed
f8, f16, f32, f64 ; Floating

Variable Declaration

u32 a = 24
u32 b = a * (4 + 2)

Quick Start

Download or clone thrive.h and include it in your project.

#include "thrive.h" /* Low Level Programming Language inbetween Assembly and C */

int main() {

    return 0;
}

"nostdlib" Motivation & Purpose

nostdlib is a lightweight, minimalistic approach to C development that removes dependencies on the standard library. The motivation behind this project is to provide developers with greater control over their code by eliminating unnecessary overhead, reducing binary size, and enabling deployment in resource-constrained environments.

Many modern development environments rely heavily on the standard library, which, while convenient, introduces unnecessary bloat, security risks, and unpredictable dependencies. nostdlib aims to give developers fine-grained control over memory management, execution flow, and system calls by working directly with the underlying platform.

Benefits

Minimal overhead

By removing the standard library, nostdlib significantly reduces runtime overhead, allowing for faster execution and smaller binary sizes.

Increased security

Standard libraries often include unnecessary functions that increase the attack surface of an application. nostdlib mitigates security risks by removing unused and potentially vulnerable components.

Reduced binary size

Without linking to the standard library, binaries are smaller, making them ideal for embedded systems, bootloaders, and operating systems where storage is limited.

Enhanced performance

Direct control over system calls and memory management leads to performance gains by eliminating abstraction layers imposed by standard libraries.

Better portability

By relying only on fundamental system interfaces, nostdlib allows for easier porting across different platforms without worrying about standard library availability.

About

Low Level Programming Language inbetween Assembly and C

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published