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: nmm1@cus.cam.ac.uk (Nick Maclaren) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/01 Message-ID: <60ujk7$i58$1@lyra.csx.cam.ac.uk>#1/1 X-Deja-AN: 277153525 References: <3431A2DB.4273@EasyInternet.net> <5l90wd2sbj.fsf@tequila.systemsz.cs.yale.edu> <60uek7$fon$1@lyra.csx.cam.ac.uk> <60ui2q$33a$1@cdn-news.telecom.com.au> Organization: University of Cambridge, England Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article <60ui2q$33a$1@cdn-news.telecom.com.au>, P Murray wrote: >Nick Maclaren (nmm1@cus.cam.ac.uk) wrote: > >: For efficient use of modern architectures, we need languages in which we >: programmers can express what we want to say in a fashion that can be >: converted to the sort of instruction stream that executes fast. And >: the current trends are in exactly the opposite direction. > >Any suggestions on what such a language would look like? Hopefully >it will not look like ASM. Would it be possible to modify C/C++ in >such a way as to allow this? Well, I would favour something using the more successful ideas of Algol 68 :-) But it would have to include some of the concepts of the stricter functional languages. >And finally, could anyone recommend ways to code in C/C++ that >avoid these problems and allow the optimiser to produce the >most efficient code? I assume virtual function calls would >be out, as well as all forms of aliasing. Yes. And, if you can code C without implying aliasing, I take my hat off to you! The biggest problem with attempting this is that you can only 'const qualify' at the top level and, for efficient code-generation, you need to do it at other levels. I believe that the new 'restrict' in C9X is a sort of recursive 'const', but have not seen a specification. Nick Maclaren, University of Cambridge Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cam.ac.uk Tel.: +44 1223 334761 Fax: +44 1223 334679