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: f57db,f679b04ea72eb590 X-Google-Attributes: gidf57db,public X-Google-Thread: 1164f8,f679b04ea72eb590 X-Google-Attributes: gid1164f8,public From: mschmit@ix.netcom.com (Mike Schmit) Subject: Re: DEC 5000/133 vs Pentium Date: 1995/05/17 Message-ID: <3pdd0k$j1k@ixnews2.ix.netcom.com>#1/1 X-Deja-AN: 102835920 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> organization: Netcom newsgroups: comp.unix.pc-clone.32bit,comp.sys.dec,comp.sys.intel,comp.benchmarks In <3pbtu5$j61@natasha.rmii.com> Edmond Underwood writes: > >>I have not tracked down the list of performance improvments >>necessary for the Pentium. Is this available on the net >>somewhere? I did receive information on the first, >>basic enhancement - align all data on natural boundaries >>and/or 8-byte boundaries [just like most RISCs]. This also >>improves 486 timing, but to a lesser extent. It also uses >>a little more space, naturally. > >>The biggest problem area seems to be the stack pointer, >>which is much more efficient when accessed in 8-byte >>chunks. This apparently is a big change from the 486, >>and is somewhat more troublesome to deal with. > >>From what I know, the alignment can cause trouble if data is aligned >poorly. For instance, if you try to access a 32-bit word, you need >to access it on an even 4-byte boundary. Otherwise, the CPU has to >retrieve 2 4-byte chunks and combine a part from each. This would >degrade performance. A 64-bit word (qword), would then need to be >aligned on even 8-byte boundaries for it's optimal performance. If >not, it would have to access 4 4-byte chunks and combine a part from >each. This would decrease performance even greater. So yes, you >are exactly right. A Pentium, which uses 64 bit words, needs to >align its data on EVEN 8-byte boundaries. In actuallity, RISC >assembly needs to be done the same way or the same problem will >occur. 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. Mike Schmit ------------------------------------------------------------------- mschmit@ix.netcom.com author: 408-244-6826 Pentium Processor Programming Tools 800-765-8086 ISBN: 0-12-627230-1 -------------------------------------------------------------------