4 ms·
The only way to write a real forth kernel is in assembler. The use of the cpu registers is very particular. It is impossible to do that with a standard compiler
by samsaga2 6y ago
The only way to write a real forth kernel is in assembler. The use of the cpu registers is very particular. It is impossible to do that with a standard compiler.
- colejohnson66 6y agoWhat do you mean?
- MaxBarraclough 6y agoThey're referring to that the 'traditional'/'proper' way to implement Forth is to write the whole thing in assembly and carefully consider how best to make use of the particular instruction-set.
- airbreather 6y agothey leverage off the c compiler to make it easily transportable and able to use different types, everything is a tradeoff and for the right circumstances this is an excellent one. No one says it has ot be assembler, more the point is it easily could be if you wanted, hence the bringing up of new systems/CPU's often using Forth, you bootstrap more quickly.
- Extigy 6y agoI'm not sure I'd go that far, but certainly one of the really nice things about Forth is that it's so easy to bootstrap up from just assembler into something usable.