nanix and nanc
Posted: Sun Nov 02, 2014 6:31 am
nanc
After the CompilerDev topic a while ago, I started writing my own compiler. Now, after a few weeks, it's getting ready to being somewhat usable. My compiler compiles my own language, called nanlang. The compiler itself is called nanc.
I wanted my compiler to be modular. The main reason for that is maintainability, as one big block of code would become unmaintainable after some time. First off, I was only writing it for x86. After I tested it and tried some other stuff out, I decided to start over, hoping not to do the same mistakes again that I did with the first version. It has grown and become nanc by now. Currently, it is only compiling code for amd64, but ARMv6 is planned.
The reason I'm doing this is simple: I want to write my OS with this language. I want to use the same language for both OSdev and CompilerDev. I didn't choose C, as I think it's not suited for compiler development (my own opinion, haters gonna hate). C++ seems too unintuitive to me. Other ones are just crap when using them for OSdev. (Please don't start a flamewar, it's my opinion. It will not change.)
nanix
This will be the OS written using nanlang. I want it to run on x86-64 UEFI PCs and Raspberry Pis.
It isn't started yet, not even planning is completed, so I don't know about how I'll implement things, at least right now.
nanas
nanas is a assembler, featuring a new clean and human-readable syntax. It has no fixed instruction order, but instead it follows the way humans thing (e.g. "mov(e) 0 (to) eax", "cmp 4 (to) eax", leaving out everything in the braces). It does not use any commas. Intel syntax is scary, AT&T even more. Currently, it is capable of producing (horrible, but working) ELF64 binaries. Only few instructions are supported yet.
Download
Releases will be available through GitHub.
After the CompilerDev topic a while ago, I started writing my own compiler. Now, after a few weeks, it's getting ready to being somewhat usable. My compiler compiles my own language, called nanlang. The compiler itself is called nanc.
I wanted my compiler to be modular. The main reason for that is maintainability, as one big block of code would become unmaintainable after some time. First off, I was only writing it for x86. After I tested it and tried some other stuff out, I decided to start over, hoping not to do the same mistakes again that I did with the first version. It has grown and become nanc by now. Currently, it is only compiling code for amd64, but ARMv6 is planned.
The reason I'm doing this is simple: I want to write my OS with this language. I want to use the same language for both OSdev and CompilerDev. I didn't choose C, as I think it's not suited for compiler development (my own opinion, haters gonna hate). C++ seems too unintuitive to me. Other ones are just crap when using them for OSdev. (Please don't start a flamewar, it's my opinion. It will not change.)
nanix
This will be the OS written using nanlang. I want it to run on x86-64 UEFI PCs and Raspberry Pis.
It isn't started yet, not even planning is completed, so I don't know about how I'll implement things, at least right now.
nanas
nanas is a assembler, featuring a new clean and human-readable syntax. It has no fixed instruction order, but instead it follows the way humans thing (e.g. "mov(e) 0 (to) eax", "cmp 4 (to) eax", leaving out everything in the braces). It does not use any commas. Intel syntax is scary, AT&T even more. Currently, it is capable of producing (horrible, but working) ELF64 binaries. Only few instructions are supported yet.
Download
Releases will be available through GitHub.