I am beginning a transition away from GitHub. You can now find this project at source hut instead.
This is the Hare compiler ported (WIP) to macOS.
See Notes.
./configure
make
sudo make install
Optionally, build and run the test suite as well:
make check
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 (Not compiling on macOS yet).
STATUS: make
s successfully, make check
fails
Error Fixes
For those who think that this is comprehensive or even understandable, think again. If anything, this is a whole list of reasons to not use this because of the horrible ways that I stumbled to random fixes. Might blow up your computer?
- For the
.section "something"
errors, add, "ax"
to the end of the line. This couldn't possibly go wrong, right? (I might try changing all of those"ax"
s to just"a"
and see what happens) - For the
.section .text.something
errors, replace the entire line with.text
. This couldn't possibly go wrong, right? (I am actually pretty sure that this one will work out. From what I see, the extra stuff is just for GAS assembly) error: ADR/ADRP relocations must be GOT relative
,error: unknown AArch64 fixup kind!
: I actually did some stuff toQBE
(nothing massive, see diff here) to fix this. See this SO answer.Undefined symbols for architecture (insert arch)
(onmake check
): Nothing yet. Fixing this is the current priority. It might be caused by differences between where FreeBSD keeps stuff and macOS? Who knows.