seven programming languages on one floppy (Developers)
> https://github.com/xorvoid/sectorc
>
> If it's real, I envisage stepping stones all the way
> from this to the x64 in C code.
Nils, the author of SubC, says:
It is real, but -- unsurprisingly -- it implements a *very* limited
subset of C:
- only int variables
- only void functions of no arguments
- no local variables
- no else in if
- only one level of indirection through int: *(int*)x
- no unary operators except for &
- no operator precedence
- no preprocessor
Bootstrapping something more useful from that will be very
challenging.
But I don't think this is the right thing to put on the
boot sector, and I don't think input should come from
the serial port (which more-or-less requires another
computer to exist).
There were mainframe computers (S360/67) that allowed
you to toggle switches to zap memory, and there were
micros that did it too, like this one:
https://en.wikipedia.org/wiki/Altair_8800
So it had switches and a floppy disk.
Now it is difficult to get the appropriate hardware,
so I think I would like a boot sector that doesn't
do much more than allow you to write a hex value to
memory and then execute it.
And the first thing I would do is have a routine to
zap bytes on sector 0 of the hard disk, so that I
never have to "flick switches" again to get that
boot sector. And after a bit more disk zapping I
could then start entering the hex for the 1-sector
C compiler.
I guess the goal would be that the only data ever
to go ONTO the PC would be that one single flick
switching boot sector, on a floppy image on a
CDROM in El Torito format, but if the code has
been written to do so, you can make a backup
onto another hard disk or whatever for safekeeping.
Try to keep yourself honest.
One more possibility would be to leave the switch
flicking for someone else to do, rewrite Sector C
in Sector C, and then carry that bootstrapping
forward from there.
BFN. Paul.
Complete thread:
- seven programming languages on one floppy - Rugxulo, 19.03.2023, 03:16
- seven programming languages on one floppy - kerravon, 21.03.2023, 05:39
- seven programming languages on one floppy - Rugxulo, 25.03.2023, 04:12
- seven programming languages on one floppy - kerravon, 25.03.2023, 05:34
- seven programming languages on one floppy - Rugxulo, 27.03.2023, 09:25
- seven programming languages on one floppy - kerravon, 28.03.2023, 04:00
- seven programming languages on one floppy - Rugxulo, 28.03.2023, 12:29
- seven programming languages on one floppy - DosWorld, 03.04.2023, 12:03
- seven programming languages on one floppy - Rugxulo, 02.04.2023, 08:08
- seven programming languages on one floppy - kerravon, 03.04.2023, 03:04
- seven programming languages on one floppy - Rugxulo, 03.04.2023, 10:33
- seven programming languages on one floppy - kerravon, 03.04.2023, 10:55
- seven programming languages on one floppy - Rugxulo, 14.04.2023, 02:30
- seven programming languages on one floppy - DosWorld, 15.04.2023, 23:42
- seven programming languages on one floppy - kerravon, 26.05.2023, 02:17
- seven programming languages on one floppy - kerravon, 26.05.2023, 11:07
- seven programming languages on one floppy - DosWorld, 26.05.2023, 23:23
- seven programming languages on one floppy - kerravon, 31.05.2023, 17:36
- seven programming languages on one floppy - DosWorld, 02.06.2023, 23:07
- seven programming languages on one floppy - Rugxulo, 15.06.2023, 04:16
- seven programming languages on one floppy - DosWorld, 02.06.2023, 23:07
- seven programming languages on one floppy - kerravon, 31.05.2023, 17:36
- seven programming languages on one floppy - DosWorld, 16.04.2023, 00:32
- seven programming languages on one floppy - kerravon, 16.04.2023, 01:32
- seven programming languages on one floppy - Rugxulo, 14.01.2024, 10:00
- seven programming languages on one floppy - kerravon, 16.04.2023, 01:32
- seven programming languages on one floppy - Rugxulo, 14.04.2023, 02:30
- seven programming languages on one floppy - kerravon, 03.04.2023, 10:55
- seven programming languages on one floppy - marcov, 04.04.2023, 10:49
- seven programming languages on one floppy - Rugxulo, 03.04.2023, 10:33
- seven programming languages on one floppy - kerravon, 03.04.2023, 03:04
- seven programming languages on one floppy - Rugxulo, 10.04.2023, 06:57
- seven programming languages on one floppy - Rugxulo, 28.03.2023, 12:29
- seven programming languages on one floppy - kerravon, 28.03.2023, 04:00
- seven programming languages on one floppy - jhall, 27.03.2023, 17:56
- seven programming languages on one floppy - kerravon, 28.03.2023, 04:04
- seven programming languages on one floppy - Rugxulo, 27.03.2023, 09:25
- seven programming languages on one floppy - kerravon, 25.03.2023, 05:34
- seven programming languages on one floppy - Rugxulo, 25.03.2023, 04:12
- seven programming languages on one floppy - kerravon, 21.03.2023, 05:39