On 09/28/2014 06:39 AM, Mouse wrote:
It depends.
There were a lot of cross-assemblers written in FORTRAN.
Some could be run on non-binary, non-ASCII, non-8-bit character
machines.
Let's see 'C' do that.
C _can_ do that; indeed, many of the freedoms granted to the compiler
are there to support such machines. (That most C coders these days are
unaware of that, and write as if the whole world were x86 Linux, is the
fault of the coders, not the language.)
Really? I've never seen a C defined for an architecture that lacks
simple Boolean operations--note that on a decimal architecture, all bit
combinations are not legal. Shifting, if implemented, only shifts
values by powers of ten.
Show me a C for an IBM 1620, 7080 or 1401. I've never seen it. All had
FORTRAN, however.
It seems to me that the OS for Prime minis (PRIMOS) was implemented in
FORTRAN, at least initially.
--Chuck