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: Jason.Ozolins@anu.edu.au Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/14 Message-ID: <61v23j$5f5$1@clarion.carno.net.au>#1/1 X-Deja-AN: 280297285 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> <61tq8p$t61@hermes.acs.unt.edu> <34427D66.F3558989@tonys.ecology.umn.edu> Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In <34427D66.F3558989@tonys.ecology.umn.edu> boo writes: >Steve Tate babbled: >> Your original comment was that "as far as I understood, computer >> memory is not two dimensional", and then you go off on this latest >> posting and talk about how you're interested in computers that are >> used by many people. Well the computers that are used by millions of >> people DO have two dimensional memory, which you seem unaware of. >> DRAM (of any kind) is two dimensional: locations have a row address >> and a column address. This is hidden, for the most part, by other >> hardware, but it really is there and it really can make a performance >> difference. > >One other thing.... the important thing really is cache memory, >not DRAM. Even if you have several cache lines, they still >are cache LINES. Do you see what I am saying? If you can show >me some dimensionality of the cache (or other) memory that >I can actually take advantage of at the assembly level, then >I would love to hear about it. Seriously, I would, because I >would use it, so please enlighten me. Some of the arrays I have >played with in F90 have been 6 or 7 dimensional, so this is >quite important. Oh, come on - what would REAL dimensionality look like to you? Cache, virtual memory, main memory, and disk all happen to be linearly addressable, but that linear addressability is an *abstraction* imposed upon implementations which show their multi-dimensionality in the way that some patterns of access are much more efficient than others, and I expect that you or anyone else with half a clue would take this into account when writing speed-critical code. That kind of locality behaviour sure *sounds* like there is a preferred *dimension* to access along... who gives a gnat fart if memory isn't "seven-dimensional" like your arrays? When you decide to use eight-dimensional arrays do you want memory to magically be eight-dimensional instead? >Alas! I fear that this is all a matter of semantics, and >the usual cyber-babble that computer scientists are prone to >sprout. Worry not! Your fears are unfounded. It is a truly relevant matter of real-world machine behaviour. The bottom line (as I, not being a computer scientist, see it): The design of the standard C language is less suited to optimization by compiler for modern mainstream processor architectures than some other languages. FORTRAN looks to be one of those other languages, from what most people have pointed out in this thread. You may be a mighty software god who can do all that optimization at the C source level, but I think most people don't want to have to cope with that kind of lossage. And I suspect you might feel the same way if you had to enhance or port the resultant code. -Jason (who likes C and C++ better than FORTRAN, but that's not saying much) __________________________________________________________________________ Jason Ozolins (Jason.Ozolins@anu.edu.au) | Put your hands over your eyes. Teaching and Learning Technology Support | Jump out of the plane. Unit, Australian National University | There is no pilot. My opinions, not ANU's. | You are not alone. --