🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.hardware
Article #828

Re: P4 vs Athlon for Linux latexing, is gcc-2.95 responsible?

#828
From: Rowland McDonnell
Date: Tue, 18 Jun 2002 15:29
111 lines
6089 bytes
David Kastrup <David.Kastrup@t-online.de> wrote:

> real-address-in-sig@flur.bltigibbet (Rowland McDonnell) writes:
> 
> > David Kastrup <David.Kastrup@t-online.de> wrote:
> > 
> > > real-address-in-sig@flur.bltigibbet (Rowland McDonnell) writes:
> > > 
> > > > David Kastrup <David.Kastrup@t-online.de> wrote:
> > > > 
> > > > > And the
> > > > > 8080 still was a rather clean design.  The Z80, in constrast, was
> > > > > convenient but awful: the price you paid for some of its features was
> > > > > prohibitively high.
> > > > 
> > > > Hmm...  Maybe, maybe - but was there anything missing from the Z80
> > > > compared to the 8080?
> > > 
> > > No, it was upwards machine code compatible,
> > 
> > Righto - ta.  (memory told me that was the case).  So if the 8080's a
> > rather clean design and the Z80 has everything the 8080 has, how can the
> > Z80 be awful?
> 
> Because it is upwards machine code compatible.  That means that they
> had to squeeze the additional commands of the Z80 into few remaining
> opcodes, which necessitated compound opcodes.  Those were implemented
> in microcode which still took considerable time to execute.

Ah! - that makes sense.

>  This lead
> to longer execution times (and interrupt latencies).  For example,
> things like rlc (ix+3) took up 23 clock cycles.  In contrast, ld e,3;
> add hl,de; rlc (hl) took the same cycle count,

(just out of interest, is this all from memory, or (please tell me that
you do) do you look up the fine details?)

> was usually as
> applicable, and introduced less interrupt latency.  In general, the
> extended opcodes were quite longer, and you needed to know the
> machine quite well in order to know when it would be better not to
> use them.

Something which was pointed out to me a *long* time ago - I can recall
getting all excited over the powerful Z80 instructions until someone
mentioned the time it took to execute 'em.

> Contrast this with the design of the 6809, for example, where the
> indexing modes were sanely and tightly integrated into the processor
> design.

Righto (I think I might even have a 6809 programming manual somewhere,
which doesn't help at all with the internals, does it?)

> > > but the assembly language
> > > was more "natural"
> > 
> > Umm...  So if the Z80's got a more natural assembly language, doesn't
> > that make it less awful than the 8080?
> 
> Could it be that you have difficulties comprehending the difference
> between assembly language and machine language?

I hope not.

>  Restricting yourself
> to the opcodes of 8080, you could use Z80 assembly language for
> programming 8080 processors in a more readable manner.  The design of
> assembly language readability bears no relation to the kludginess of
> the processor design.

Well, yes; but up until that point, everything you'd said about the Z80
made it sound better than the 8080.

> > > (as long as you did not use the upward compatible
> > > TECO assembly language).
> > 
> > Uhuh.
> > 
> > > You could convert 8080 assembly language to
> > > 8086 assembly language mechanically (register set and command set
> > > matched, even though binaries didn't),
> > 
> > So I'd been told - but you seem to be a bit more authoritative than
> > most...
> 
> Sole purpose of the LAHF and SAHF instructions (load/store AH register
> to flags) is to facilitate reasonably fast replacements of the PUSH
> PSW and POP PSW instructions from the 8080. 

Coo!

> Your P4 processor still
> has LAHF and SAHF.

Not *my* P4 processor - it's 6502s, a Z80, 68000 series, and a couple of
PPCs in *this* house (plus whatever runs the calculators and the Psion 3
(some 8080-related low power thingy IIRC).  The washing machine is run
by a cam timer but I don't know what processor's built into this 'ere
monitor or the remote controls - is there no escape from the damned
things?).

Rowland.

-- 
Remove the animal for email address: rowland.mcdonnell@dog.physics.org
PGP pub key 0x62DCCA78                      Sorry - the spam got to me
                                                 http://www.mag-uk.org
UK biker?                    Join MAG and help keep bureaucracy at bay
Technical Details
Message-ID: <1fdzalw.1bd5trjb4vpaxN%real-address-in-sig@flur.bltigibbet>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!peer.news.zetnet.net!news.uklinux.net!real-address-in-sig
References: <3D0B57CB.5060406@nospam.com> <cVYO8.93284$pw3.4355@sccrnsc03> <MPG.1776a491ca74b5bf989edd@powernews.libero.it> <1fdyury.16lgkkf1d22zw9N%real-address-in-sig@flur.bltigibbet> <x5it4h2d58.fsf@tupik.goethe.zz> <1fdyxzl.1eky32lcx38cvN%real-address-in-sig@flur.bltigibbet> <x58z5c3oop.fsf@tupik.goethe.zz> <1fdz2df.191or1l176qjmiN%real-address-in-sig@flur.bltigibbet> <x57kkw2101.fsf@tupik.goethe.zz>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9e16,ea3300a83f1f851c
X-Google-Attributes: gidf9e16,public
X-Google-Thread: 102b32,ea3300a83f1f851c
X-Google-Attributes: gid102b32,public
X-Google-Thread: f65d0,ea3300a83f1f851c
X-Google-Attributes: gidf65d0,public
X-Google-Thread: 1045b9,ea3300a83f1f851c
X-Google-Attributes: gid1045b9,public
X-Google-ArrivalTime: 2002-06-18 08:29:13 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!peer.news.zetnet.net!news.uklinux.net!real-address-in-sig
From: real-address-in-sig@flur.bltigibbet (Rowland McDonnell)
Newsgroups: comp.os.linux.hardware,gnu.gcc,comp.sys.ibm.pc.hardware.chips,comp.text.tex
Subject: Re: P4  vs Athlon for Linux latexing, is gcc-2.95 responsible?
Date: Tue, 18 Jun 2002 16:29:12 +0100
Organization: The Pietertje Geeltje van der Sluis fan club
Lines: 111
Message-ID: <1fdzalw.1bd5trjb4vpaxN%real-address-in-sig@flur.bltigibbet>
References: <3D0B57CB.5060406@nospam.com> <cVYO8.93284$pw3.4355@sccrnsc03> <MPG.1776a491ca74b5bf989edd@powernews.libero.it> <1fdyury.16lgkkf1d22zw9N%real-address-in-sig@flur.bltigibbet> <x5it4h2d58.fsf@tupik.goethe.zz> <1fdyxzl.1eky32lcx38cvN%real-address-in-sig@flur.bltigibbet> <x58z5c3oop.fsf@tupik.goethe.zz> <1fdz2df.191or1l176qjmiN%real-address-in-sig@flur.bltigibbet> <x57kkw2101.fsf@tupik.goethe.zz>
NNTP-Posting-Host: bts-0175.dialup.zetnet.co.uk
X-Trace: s1.uklinux.net 1024414147 13034 194.247.48.175 (18 Jun 2002 15:29:07 GMT)
X-Complaints-To: abuse@uklinux.net
NNTP-Posting-Date: 18 Jun 2002 15:29:07 GMT
X-Face: (Erpd5b^8lQe0$9[22T;{kxJrMyksf[`sY^%O>$&p-T0LY;d.*%tDm8)~p}M"
        02vxDj5)SRrR^Y@@kQoTf+hU"SNc#=u~S(X{@}:5uVIZXMV/*\$:[3KGy~`!N>C{_
User-Agent: MacSOUP/2.4.6