Skip to content

A procedural language for kernels and embedded systems.

Notifications You must be signed in to change notification settings

orbit-systems/mars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Mars Programming Language

Mars is a statically-typed, procedural language for kernel and embedded programming. Mars focuses on low-level control, with emphasis on code configuration.

This repository is also home to Iron, a lightweight and low-level compiler backend. Iron is developed alongside Mars, but can be built and used separately in other projects.

NOTE: Mars and Iron are still VERY WORK-IN-PROGRESS at the moment. the compiler may work on some basic functions, but is subject to TODOs, crashes, and assertion failures as we build functionality up over time.

Why?

Mars was born out of the desire for a language that feels like C (no hidden mechanics, minimal runtime), but without all the legacy baggage that C comes with today (obtuse syntax, incompatible standards, unportable compiler-specific features).

Building

Prerequisites:

  • C Compiler

To build the Mars compiler, compile/run mbuild.c:

cc mbuild.c -o mbuild -Isrc
./mbuild mars -release

To build Iron, use mbuild as well:

./mbuild iron -release        # build as a standalone application
./mbuild iron static -release # build as a static library

Use mbuild with no arguments to see additional options, such as optimization and compiler flag control.

About

A procedural language for kernels and embedded systems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages