Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Alternatives to sed + awk



Lewske Wada writes:

 > Josh Glover wrote :
 > > I think this is a fallacy. I challenge you to profile your code and
 > > show that you can regularly beat gcc with the optimiser turned up.
 > >   
 > 
 > mov ah, 02h
 > mov dl, 'a'
 > int 21h
 > 
 > Good old code...

I don't know if GCC can do that well (on DOS you'd be looking at DJGPP
which requires a DMPI host, uh-oh), but, uh, (the CP/M equivalent of)
that is what Small-C generated for "putch('a')".  Probably fit into
fewer bytes, too, on the 8080. ;-)

I wouldn't be surprised if a cross-compiling GCC environment couldn't
do just as well, though.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links