From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: Patricia Shanahan Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/15 Message-ID: <34459B5B.29FCB225@acm.org>#1/1 X-Deja-AN: 281212129 References: <61g30t$o2n@news-rocq.inria.fr> <61ho3v$3m0$1@goanna.cs.rmit.edu.au> <343CE2F4.362D80F0@tonys.ecology.umn.edu> <61k9g2$2fa@mulga.cs.mu.OZ.AU> <34406444.A9D6EF97@tonys.ecology.umn.edu> <34430B63.AD177272@acm.org> <34452116.466337EC@boo.boo> Organization: Who? Me? Organized? Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec boo wrote: > > Patricia Shanahan babbled: > > > > boo wrote: > > ... > > > Because eventually, someone or something is going to have > > > to map the dimensionality of your "arrays" to the dimensionality > > > of the computer memory. I don't expect you to understand this, > > > though, so why don't you just let your Fortran compiler do > > > the thinking for you. > > ... > > > > And someone or something is going to have to map the dimensionality of > > your flat address space onto the dimensionality of the memory > > hardware. > > Someone else who does not understand that 1+1 is not always > equal to 2..... Thank you for the honor of having my understanding denigrated by you. I really do appreciate being placed in such distinguished company. Take a look at http://www.fujitsumicro.com/products/memory/memory_pdf/mb81410c.pdf, the data sheet for an arbitrarily selected DRAM chip with fast page mode. On page 2 there is a block diagram showing the actual bit array, "4,194,304 Bit Storage Cell", as a rectangular block with the Row Decoder feeding in to the left hand side and the Column Decoder feeding in to the top. Even if you are unfamiliar with hardware block diagrams, this one is fairly simple and clear. At its center, this DRAM is a 512x512 array of 16 bit items. If you don't think this has any performance significance, consider the following quote from near the bottom of page 4: "The fast page mode of operation provides faster memory access and lower power dissipation. The fast page mode is implemented by keeping the same row address and strobing in successive column addresses." Someone or something is going to take your linear address space model and map it down to a memory bank select, a row address, and a column address. The row and column addresses will be passed consecutively to the address pins of the DRAM chips in the bank. The mapping between a program memory array and a flat address space, at its very simplest, is equivalent to the mapping between a Fortran multi-dimensional array and a flat address space. In general purpose computers one rarely meets the simplest case - the mapping between data address spaces in a program and computer memory is usually substantially more complicated than the Fortran multi-dimensional array mapping.