Re:Why GCC 1.42 on the Tektronix 4404 – with a C compiler fr...
by bcrl on Tuesday December 17, 2024 @08:54PM
(#42447412)
I was referring to gcc bugs. Doing Linux kernel development 20+ years ago certain complex functions with lots of register spills would occasionally trip up gcc's register allocator on i386. Architectures with more registers and less complex constraints on how they were used would not trigger those bugs as frequently. Eventually, gcc got better and those kinds of bugs went away, but I got to spend many hours looking at the assembly gcc produced and raw Oopsen.
Re:Why GCC 1.42 on the Tektronix 4404 – with a C compiler fr...
by dmitrygr on Tuesday December 17, 2024 @11:47PM
(#42448188)
There is a branch of m68k GCC still alive and maintained today that supports palmos calling convention which is similar to this but not the same: d0-d2/a0-a1 are not preserved.
Re:Why GCC 1.42 on the Tektronix 4404 – with a C compiler fr...
by brutal_chaos_ on Tuesday December 17, 2024 @04:40PM
(#42445587)
This was a fascinating read! I truly enjoy deep dives into the relics of the early(ier) years. I'm curious if there exists a virtual machine for the Tektronix 4404, I think it'd be fun to tinker with devices like those in software since it's unlikely one will ever pass through my hands.
Re:Why GCC 1.42 on the Tektronix 4404 – with a C compiler fr...
by stevefan1999 on Tuesday December 17, 2024 @08:51PM
(#42447405)
Probably he wanted to relive in the 90s where software are simple and less convoluted. Another reason at this point the modern GCC would abandon the old quirky .r format and instead use ELF everywhere so it might be a deliberate choice...Unless he is also trying to bootstrap GCC for Tektronix4404 which is sort of:
> Bootstrapping any compiler typically requires using the existing host compiler to build some native arithmetic functions (long multiply, divide etc) on which everything else will be built. You then use your native compiler to build a (non-optimal) compile of the new compiler.
Re:Why GCC 1.42 on the Tektronix 4404 – with a C compiler fr...
by elektraglide on Wednesday December 18, 2024 @04:03AM
(#42449061)
Just for the record, Tek4404 never had gcc on it. The .r file format is proprietary to TSC (makers of Uniflex). I tracked down the grad student (at the time) Clem Cole that did the porting of K&R C for Tek4404 and there was a lot of time pressure to get it done.
Re:Why GCC 1.42 on the Tektronix 4404 – with a C compiler fr...
by david598scott on Wednesday December 18, 2024 @12:08AM
(#42448258)
Hello,
The Tektronix 4404, an older computer, uses GCC 1.42 because it was one of the early versions of the GNU Compiler Collection adapted for such vintage hardware. The C compiler from 1979 likely refers to the age of the hardware itself, which required compatible software from that era. https://www.joinpd.cc
I don't think it ever did? Looking here[1] it still seems to be supported.
I know m68k support was going to be removed at one point but it was saved in the end[2]
Nice work though! I wouldn't even know where to start with something like this! you're a wizard
[1]https://github.com/gcc-mirror/gcc/blob/master/gcc/config/m68...
[2]https://www.phoronix.com/news/GCC-11-m68k-Is-Safe
> Bootstrapping any compiler typically requires using the existing host compiler to build some native arithmetic functions (long multiply, divide etc) on which everything else will be built. You then use your native compiler to build a (non-optimal) compile of the new compiler.
Best Regards, David Scott