On 11/7/26 09:37, Peter Flass wrote:
> On 11/7/26 04:45, The Natural Philosopher wrote:
>> On 07/11/2026 04:09, c186282 wrote:
>>> ASM was also *the* way for the older micro-controllers >>>    for a long time. However some of the optimized 'C' >>>    compilers can now rival ASM for speed and size and >>>    you don't have to hand-code bit-banging serial either
>> >> At some point I idly compiled some gcc C to assembler . I spent a pointless half hour trying to work out if I could have done it better. >> >> I couldn't.. >> >> In terms of modern micros I wouldn't even bother unless I couldn't do it in 'C'. >>
> > But then you add all the cruft that GCC drags in and you're back where you started (size-wise, at least). When PCs were new I used a compiler called "Aztec C" that had almost no overhead in excess libraries, start- up code, etc., unless you asked for them.
Used Aztec ... indeed HAVE the compiler and EXTENSIVE docs stashed away somewhere. Will have to make a new CP/M-86 VM for it first. Not sure you'd get best effect on a simulated Z80. Have seen some 'kit' Z80 boards. There's also a DOS version - but it's apparently meant to run under XP. The docs are IMPRESSIVE - endless bit-level and flag stuff - exactly what you needed to know if trying to shoehorn something into a small system. A few versions of Turbo Pascal allowed code overlays in a fairly civil fashion, another way to squeeze a big pgm into a small machine. But, better have a HDD, pulling overlays from a floppy - you don't wanna go there :-) Did a couple of large pgms where overlays were needed. Anyway, if interested in Aztec, try : https://www.aztecmuseum.ca/compilers.htm