|
|
|
|
|
by teabee89
2853 days ago
|
|
From https://hackaday.io/project/18206-a2z-computer/log/71637-5-a... 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.
|
|
or if you emulate complex addressing modes by software, it would be very very slow
This is exactly what 8051 compilers do, and it's actually acceptably fast in practice.
...and Linux is only "out of the question" if you rule out any sort of emulation. Otherwise... well, just take a look:
http://dmitry.gr/?r=05.Projects&proj=07.%20Linux%20on%208bit