somewhat functional high level assembler https://wellang.github.io/well/
It appears that the language uses "return" as a synonym for the SYSCALL x86_64 instruction: https://github.com/wellang/well/blob/main/src/syscall_interp...
The example code is equivalent to:
write(1, "hello world!", 12);
QBE IR in natural Rust data structures
Maybe an IR language would be some kind of less worse compromise for portability and to avoid complex syntax (C is already too rich and flexible). For instance like QBE (http://c9x.me/compile). There is llvm, but its grotesque and absurd c++ complexity does exclude it, de-facto.
The main pitfall with IR (like QBE), is intrinsics, because QBE does a bit of optimization and writting "hardware accelerated" intrinsics in a portable way forces the IR to generalize some instruction properties which "could" make even its simple optimization passes a nightmare.
Workflow assistant built for devs & their teams. Automate the mundane part of your day, with live actionable messages for your GitHub & Jira tasks.
A simple virtual machine - compiler & interpreter - written in golang
You might find something interesting if you were to look at virtual-machines - many are used for implementing scripting-languages, so while you'd not be writing assembly-code, you'd be writing "bytecode" programs.
You could write bytecode for Lua, or bytecode for Python for example.
I had a fun few weeks writing a simple virtual-machine, and a "compiler" which turns a simple assembly-language-like input into bytecodes which are then interpreted:
Other examples, along with lua/python which were already mentioned, might include "Writing a compiler in go" this turns a scripting-language into a set of opcodes which a VM executes:
Why does Rust have parameters on impl?
13 projects | reddit.com/r/rust | 19 Nov 2022
What are Rust’s biggest weaknesses?
7 projects | reddit.com/r/rust | 17 Nov 2022
7 projects | news.ycombinator.com | 20 Oct 2022
October 2022 monthly "What are you working on?" thread
16 projects | reddit.com/r/ProgrammingLanguages | 2 Oct 2022
A General Overview of What Happens Before Main() (2019)
5 projects | news.ycombinator.com | 22 Aug 2022