Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zilch-lang/nstar
The compiler for N⋆, a statically typed assembly language used as a compiler backend for Zilch
https://github.com/zilch-lang/nstar
assembly-language compiler low-level-programming nstar zilch
Last synced: 3 months ago
JSON representation
The compiler for N⋆, a statically typed assembly language used as a compiler backend for Zilch
- Host: GitHub
- URL: https://github.com/zilch-lang/nstar
- Owner: zilch-lang
- License: bsd-3-clause
- Created: 2020-08-20T07:26:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-27T16:44:00.000Z (over 1 year ago)
- Last Synced: 2024-09-30T06:05:12.684Z (4 months ago)
- Topics: assembly-language, compiler, low-level-programming, nstar, zilch
- Language: Haskell
- Homepage:
- Size: 1.11 MB
- Stars: 29
- Watchers: 3
- Forks: 2
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# N\*
[![stars](https://img.shields.io/github/stars/zilch-lang/nsc?color=%23fdaa33&style=for-the-badge)](https://github.com/zilch-lang/nsc/stargazers) [![forks](https://img.shields.io/github/forks/zilch-lang/nsc?color=%23654321&label=Forks&style=for-the-badge)](https://github.com/zilch-lang/nsc/network/members)
N\* is a low-level typed assembly language meant to be used as a compiler target language.
It is very low-level, and features zero-cost abstractions such as structures, unions or even types.## Compiling
Make sure that you have [stack](https://docs.haskellstack.org/en/stable/README/) in your path.
Then type `stack build` and `stack exec -- `.
The first command will build nsc, the compiler for N\*, and the second one will run it with the given command-line arguments.
## Hacking on the source code
The codebase is written almost entirely in Haskell at the moment, but a rewriting in Zilch is planned for when Zilch will be production-ready and complete enough to be used on its own.
Make sure to conform to the license before requesting any change!
## Code examples
N\* is not yet production-ready, thus example codes are lacking.
It is also pretty unstable, so examples in the [examples](./examples) directory will change at some point.## License
© Ghilain Bergeron (Mesabloo) and collaborators.
This work is licensed under the BSD-3 license.