Re: New assembly language instructions to support OO languages?

torbenm@pc-003.diku.dk (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen)
Mon, 08 Dec 2008 11:29:34 +0100

          From comp.compilers

Related articles
[19 earlier articles]
Re: New assembly language instructions to support OO languages? mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2008-12-06)
Re: New assembly language instructions to support OO languages? jasen@xnet.co.nz (Jasen Betts) (2008-12-06)
Re: New assembly language instructions to support OO languages? jgd@cix.compulink.co.uk (2008-12-06)
Re: New assembly language instructions to support OO languages? gneuner2@comcast.net (George Neuner) (2008-12-06)
Re: New assembly language instructions to support OO languages? jgd@cix.compulink.co.uk (2008-12-07)
Re: New assembly language instructions to support OO languages? rpw3@rpw3.org (2008-12-08)
Re: New assembly language instructions to support OO languages? torbenm@pc-003.diku.dk (2008-12-08)
Re: New assembly language instructions to support OO languages? gah@ugcs.caltech.edu (Glen Herrmannsfeldt) (2008-12-08)
Re: New assembly language instructions to support OO languages? bowes.brad@gmail.com (Brad) (2008-12-08)
Re: New assembly language instructions to support OO languages? cfc@shell01.TheWorld.com (Chris F Clark) (2008-12-08)
Re: New assembly language instructions to support OO languages? gneuner2@comcast.net (George Neuner) (2008-12-09)
Re: New assembly language instructions to support OO languages? jasen@xnet.co.nz (Jasen Betts) (2008-12-09)
Re: New assembly language instructions to support OO languages? efeustel@hughes.net (Edward Feustel) (2008-12-09)
[10 later articles]
| List of all articles for this month |
From: torbenm@pc-003.diku.dk (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen)
Newsgroups: comp.compilers,comp.arch
Date: Mon, 08 Dec 2008 11:29:34 +0100
Organization: Department of Computer Science, University of Copenhagen
References: 08-12-014
Keywords: architecture, OOP
Posted-Date: 08 Dec 2008 05:49:25 EST

"Tony" <tony@my.net> writes:


> To me, it seems like "reducing everything to a function" may be a bit
> dated given that OO languages are the thing nowadays. Can anyone
> imagine any new potential assembly language instructions that would
> make implemention of OO languages easier? (Not just necessarily the
> function thing, but anything).


Having a fast hash instruction might help: It would take two numbers
as arguments and produce a single number that is a hash of the pair.
It would not need to be cryptographically strong, just good enough for
hash tables.


This can be used for associative arrays, dynamic method lookup for
clone-based inheritance, etc.


A good hash can take many "normal" instructions, but you can make a
good hash efficiently in hardware.


Torben



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.