Remix.run Logo
Philpax 3 hours ago

I would love to see the commit log on this.

rustystump 3 hours ago | parent | next [-]

Implementing just enough to conform to a language is not as difficult as it seems. Making it fast is hard.

dmitrygr 3 hours ago | parent | prev [-]

did this before i knew how to git, back in college. target was ARMv5

Philpax 3 hours ago | parent [-]

Great. Did your compiler support three different architectures (four, if you include x86 in addition to x86-64) and compile and pass the test suite for all of this software?

> Projects that compile and pass their test suites include PostgreSQL (all 237 regression tests), SQLite, QuickJS, zlib, Lua, libsodium, libpng, jq, libjpeg-turbo, mbedTLS, libuv, Redis, libffi, musl, TCC, and DOOM — all using the fully standalone assembler and linker with no external toolchain. Over 150 additional projects have also been built successfully, including FFmpeg (all 7331 FATE checkasm tests on x86-64 and AArch64), GNU coreutils, Busybox, CPython, QEMU, and LuaJIT.

Writing a C compiler is not that difficult, I agree. Writing a C compiler that can compile a significant amount of real software across multiple architectures? That's significantly more non-trivial.