|
|
|
|
|
by megous
2853 days ago
|
|
I was reading through a gcc source code yesterday and found a moxie architecture, which seems like quite a similar very small project. It is from the autor of libffi and includes gcc, binutils, qemu ports. It's probably a nice example in how to take this further and implement a gnu toolchain support for something like this. |
|
I’m afraid, Linux and a C compiler is totally not feasible.
A2Z lacks many things to achieve the goal of C retargeting and Linux porting.
- A2Z only manages Direct Addressing in hardware. No complex address computation. If you want to implement data stack, recursive functions, then direct addressing is not enough. You cannot retarget a C compiler with only direct addressing (or if you emulate complex addressing modes by software, it would be very very slow).
- A2Z has not interrupt management. You cannot implement/port a pre-emptive multitasking OS (Linux) without interrupt management.
- A2Z has no memory management unit.
- A2Z’s ALU is compatible with nothing.