Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grassator/mass
A compiler for a new language focusing on compile-time execution and no LLVM dependency.
https://github.com/grassator/mass
assembly c compiler jit linux machine-code windows x86
Last synced: 3 days ago
JSON representation
A compiler for a new language focusing on compile-time execution and no LLVM dependency.
- Host: GitHub
- URL: https://github.com/grassator/mass
- Owner: grassator
- License: mit
- Created: 2020-05-10T23:48:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T22:05:30.000Z (about 1 year ago)
- Last Synced: 2024-08-01T21:43:19.030Z (3 months ago)
- Topics: assembly, c, compiler, jit, linux, machine-code, windows, x86
- Language: C
- Homepage: https://www.youtube.com/watch?v=k3gDvF-Fbpw&list=PLvdK1vRmp8wMzH4w_8sQ30NKU3Bt4Cc-M
- Size: 4.78 MB
- Stars: 280
- Watchers: 14
- Forks: 7
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Mass (Meta Assembly) Language
A lot of the code for this repository is developed live on my
"[Compiler Programming in C](https://www.youtube.com/playlist?list=PLvdK1vRmp8wMzH4w_8sQ30NKU3Bt4Cc-M)"
series of videos on YouTube.## Build
### Windows
The code has been tested with MSVC 14.0+ compiler with. To build the code
open up MSVC Command Prompt and run `build.bat` in the repository folder.
Tests can be executed by running `test.bat`.### Mac / Linux
There is currently **no support for generating Linux or Mac binaries**,
however it is possible to run the code in JIT mode.You can build the code by running `./build.sh` and tests are run with
`./test.sh`. Both gcc and clang compilers are supported and you can
set which one to use by providing a `CC` environment variable:```
CC=clang ./build.sh
```## License
Copyright (c) 2020 Dmitriy Kubyshkin (unless noted otherwise in the code).
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.