From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,f679b04ea72eb590 X-Google-Attributes: gid110292,public X-Google-Thread: 100cc1,f679b04ea72eb590 X-Google-Attributes: gid100cc1,public X-Google-Thread: 1164f8,f679b04ea72eb590 X-Google-Attributes: gid1164f8,public X-Google-Thread: f57db,f679b04ea72eb590 X-Google-Attributes: gidf57db,public From: mschmit@ix.netcom.com (Mike Schmit) Subject: Re: DEC 5000/133 vs Pentium Date: 1995/05/19 Message-ID: <3phlbd$ksd@ixnews3.ix.netcom.com>#1/1 X-Deja-AN: 102835883 distribution: world references: <3mkrhi$88l@larch.cc.swarthmore.edu> <3n3h21$a47@inews.sc.intel.com> <3n9dkf$lsj@helena.MT.net> <3om9kl$mjt@onramp.arc.nasa.gov> <3p8tvb$gsc@onramp.arc.nasa.gov> <3pamdo$n6h@onramp.arc.nasa.gov> <3pbtu5$j61@natasha.rmii.com> <3pdd0k$j1k@ixnews2.ix.netcom.com> <3pdl1m$1c@natasha.rmii.com> organization: Netcom newsgroups: comp.unix.pc-clone.32bit,comp.sys.dec,comp.sys.intel,comp.benchmarks In <3pdl1m$1c@natasha.rmii.com> Edmond Underwood writes: > >>The alignment issues are not because the Pentium uses a 64 bit >>word. It doesn't. The data bus is 64 bits, the internal word size is 32 >>bits. The L1 cache has a line width of 32 bytes. >------------------------------------------------------------------- > >What is a qword? It should be a 64 bit data word if I am not >mistaken. I'm talking about fetching bytes from memory. When >you align your data structures, a DWORD must begin on an even >4-byte boundary and a QWORD must begin on a even 8-byte boundary. >Otherwise the condition I stated before will occur. Try it. >I'm by no means an expert on structured programming , but this seems >to be the case. > This is true, but the only qword accesses are for double precision FP. This (on the average) is a low percentage on accesses. I now forget the full context of the original post, but just wanted to make clear that most access on the Pentium are 32 bits and the qword access is not different than for the 486 (in that 2 dwords are accessed). As far a accessing a qword on an even qword boundary vs. on an even dword but not even qword, the effect is probably due to sometimes needing to access to cache lines vs always getting all the data from 1 cache line. Mike Schmit ------------------------------------------------------------------- mschmit@ix.netcom.com author: 408-244-6826 Pentium Processor Programming Tools 800-765-8086 ISBN: 0-12-627230-1 -------------------------------------------------------------------