Skip to content

FreerGit/smol-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smol-compiler

A dead simple compiler targeting nasm, smol is pascal-like and features some simple IO operations. The language is really dead simple, it does not even have a notion of scopes. What interested me was the assembly generation though, not the feature set of the language.

Nix

To install nix, see: Nix install docs

I use nix, specifically nix-shell, simply run:

nix-shell --max-jobs auto

A new shell will open with all necessary dependencies to build the compiler.

To build (within nix-shell):

odin build src -o:speed

To run (within nix-shell):

./src.bin smol-programs/read_write.smol

of course, you can pass any file with smol code, read_write.smol is just an example.

You may see warnings when compiling depending on your system, it should still work.

If you would rather use Odin directly without nix, please see Odin install docs: Odin install docs

You also need to install gcc-multilib if you do not use nix.

About

A dead simple compiler targeting nasm

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors