I kind of want to make a compiler and programming language for my retro projects since C is not that nice to use. Does mean I’d have to write a compiler though lol
But I could do that 🤔
I kind of want to make a compiler and programming language for my retro projects since C is not that nice to use. Does mean I’d have to write a compiler though lol
But I could do that 🤔
At least old CPUs are trivial compared to their modern counterparts…
@darkcisum well Lua won’t run that well on a 8086 :P
@LunaFoxgirlVT
What about using a common scripting language like Lua instead? Would at least not require a whole new compiler 😄
@timmer whatever processor I develop for at the time, I have a bunch of retro hardware, lol
8086, I386, maybe some old ARM devices and 68000 stuff? And again, whatever other legacy architectures I may want to target down the line. Really don’t want to have to deal with legacy GCC for that because GCC is a nightmare
@LunaFoxgirlVT which architecture are you targeting? I386? :P
@darkcisum I make game engines for fun (and I’m
already making a JIT compiler too for another language I’m designing)
So, to me this is normal, don’t worry
@LunaFoxgirlVT
Have you tried? 😁
I've no idea about writing for a 8086. Writing a compiler just to get something nicer than C seems however also quite excessive 😄
@ami problem with LLVM is that they’re very quick at throwing backends away, as such it only really supports modern platforms.
I am using LLVM as a backend for a JIT compiled scripting language im making though.
@LunaFoxgirlVT
Isn't the purpose of LLVM (notice the V) that you just write a backend and you have all languages to chose from, including but not limited to : Rust, C, C++ ?
I'm asking since I couldn't write an LLVM backend to save my life.
(Also, I'm hard pressed to imagine the situation where writing an LLVM backend would save my life)
@ami yeah but then I have to write an LLVM backend which is a living nightmare on its own because it's C++
@LunaFoxgirlVT
But _you_ won't have to throw the backend away, you just have to maintain it 😜
(also: why is my autocomplete trying to get you to write an LLVM hacienda ?)
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.