A Hare compiler written in C11 for POSIX-compatible systems.
  • C 60.2%
  • Hare 35.9%
  • Makefile 2.6%
  • Assembly 1.1%
  • Shell 0.1%
Find a file
Sebastian 41b248cd28 typedef: emit default args in fn types
References: https://todo.sr.ht/~sircmpwn/hare/957
Signed-off-by: Sebastian <sebastian@sebsite.pw>
2026-06-07 18:49:06 +01:00
.builds .builds: disable git builds on non-master branch 2026-02-23 21:38:17 +01:00
configs Add support for DragonFly 2025-12-03 12:59:31 +01:00
docs docs/runtime.txt: move @symbol before const 2026-04-14 19:57:16 -04:00
include Replace size_t with more appropriate types throughout codebase 2026-06-01 21:56:29 +01:00
makefiles typedef: emit default args in fn types 2026-06-07 18:49:06 +01:00
rt rt/+openbsd/start.ha: remove outdated comment about crt0 2026-05-18 21:28:21 +02:00
scripts scripts/version: update to 0.26.0 2026-02-13 13:16:23 +01:00
src typedef: emit default args in fn types 2026-06-07 18:49:06 +01:00
testmod typedef: emit default args in fn types 2026-06-07 18:49:06 +01:00
tests typedef: emit default args in fn types 2026-06-07 18:49:06 +01:00
.gitignore .gitignore: remove tests/*.c 2026-04-14 19:57:16 -04:00
.mailmap Add a mailmap 2022-09-22 11:07:24 +02:00
COPYING Initial commit 2020-10-05 20:17:09 -04:00
MAINTAINERS MAINTAINERS: bgs steps down 2025-12-15 09:52:04 +01:00
Makefile Add enum arch 2026-03-19 16:03:56 +01:00
README.md replace ./configure with config.mk 2023-12-31 05:40:53 +00:00

harec

This is a Hare compiler written in C11 for POSIX-compatible systems.

Build status

Linux (x86_64)
Build status for Linux
FreeBSD (x86_64)
Build status for FreeBSD
NetBSD (x86_64)
Build status for NetBSD

Building

cp configs/$platform.mk config.mk
make

Optionally, build and run the test suite as well:

make check

Runtime

harec includes a minimal runtime under rt which is suitable for running the test suite, but not recommended for production use. See docs/runtime.txt for details on how to provide your own runtime implementation, or use the Hare standard library.