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: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public From: Patricia Shanahan Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/13 Message-ID: <3442C5F7.20567A07@acm.org>#1/1 X-Deja-AN: 280222886 References: <61g30t$o2n@news-rocq.inria.fr> <343CE2F4.362D80F0@tonys.ecology.umn.edu> <343EF1C9.61670DFC@tonys.ecology.umn.edu> <343FAA72.2ED97125@acm.org> <61tnd5$6m8@usenet.srv.cis.pitt.edu> Organization: Who? Me? Organized? Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Gregg E Economou wrote: > > In article <343FAA72.2ED97125@acm.org>, > Patricia Shanahan wrote: > > > >Why do you say "computer memory is NOT multi-dimensional"? Every > >computer memory structure that I have looked at in enough detail for > >analysis of its performance has been multi-dimensional. In the case of > > You miss the point that while yes, they may be physically multidimensional, > and even organisationally multidimensional, and even architecturally > multidimensional, they are *logically* linear, and accessed in a linear > fashion. Yes, there are strange exceptions out there, but the majority > of memories are linear int the majorities or architectures and the > majority of machines ever designed, made, or sold. > > isildur No, I am very aware of that point. Flat addressing is still only an abstration. It is a very, very, useful one. The operating system, processor, and memory controller deal with these issues in such a way that a normal programmer never has to worry about them. Much of the time when I am programming I act as though it were real even on systems where I know the realities of the memory hierarchy in gory detail. For programs that logically need a lot of multi-dimensional array handling, the model provided by a language such as Fortran that makes it look as though there are multi-dimensional arrays is just as valuable and valid as the one that makes it look as though there is a flat address space. Those multi-dimensional arrays are neither more nor less real than the flat address space. Both, ultimately, get mapped into caches and memories that are neither flat nor necessarily dimensioned the same as the program arrays. Most of the art of computing is choosing just which abstractions to use when.