No description
Find a file
2025-01-15 13:07:01 -03:00
compiler lexer: use Str_from_buf here 2 2025-01-13 14:52:14 -03:00
docs update grammar 2025-01-15 13:07:01 -03:00
.gitignore include gitignore 2025-01-12 19:11:08 -03:00
Makefile be more confident 2025-01-12 23:39:41 -03:00
README.md Initial commit 2025-01-12 18:20:42 -03:00

Rutile

Yet another compiled programming language. Very unstable and in early development.

proc main*(): cint
    puts("Hello, world!")
    return 0
end

Building

Build time dependencies

  • C11 C compiler (tested on GCC, Clang and TCC)
  • Libc
  • BSD or GNU Make
  • POSIX shell
  • find command

Build time dependencies (single header libraries)

These are contained in compiler/libs.

Procedure

Note that the default CFLAGS and LDFLAGS are meant for development builds.

# debug build (uses default flags):
make -j$(nproc) ptgc
# for release:
make -j$(nproc) CFLAGS='-O2 -march=native -DNDEBUG' LDFLAGS='' ASAN=''

License

GNU GPLv3 for the compiler and BSD 3-Clause for the standard library.

Acknowledgements

  • Christopher Wellons, for his public domain libraries.
  • Sean Barrett's stb_ds.h.