Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IMCC Register Allocation Algorithm

6 views
Skip to first unread message

Vishal Soni

unread,
Jun 29, 2006, 11:20:48 PM6/29/06
to Perl 6 Internals
Hi Everyone,

Currently IMCC uses a Graph Coloring based Register allocation algorithm.
The implementation is a trimmed down version of Brigg's Allocator.

I came across this research paper that talks about the new register
allocation algorithm "Linear Scan Allocation"for dynamically compiled
languages. Parrot perfectly fits the mold of dynamically compiled language.

The Linear Scan Allocator is faster at register allocation process and seems
to have the same execution time for the code. For more information please
refer to the research paper from IBM on Liner Scan Allocation

http://www.research.ibm.com/jalapeno/papers/toplas99.pdf

Let me know what your thoughts are and would it be worth implementing this
algorithm to see how it performs compared to graph coloring algorithm.

Please share your thoughts accordingly

--
Thanks,
Vishal

Chromatic

unread,
Jun 30, 2006, 1:07:04 AM6/30/06
to perl6-i...@perl.org, Vishal Soni
On Thursday 29 June 2006 20:20, Vishal Soni wrote:

> Let me know what your thoughts are and would it be worth implementing this
> algorithm to see how it performs compared to graph coloring algorithm.
>
> Please share your thoughts accordingly

It'd be very useful not only to have two implementations to compare with a
real benchmark on actual programs, but to do incidental IMCC cleanups while
implementing the other system. (Pluggable allocators is probably too much
work, but minor refactorings and documentations are always nice, if nothing
else.)

-- c

Watson Ladd

unread,
Jun 30, 2006, 8:35:55 AM6/30/06
to perl6-i...@perl.org
Bin packing looks better because I don't think SSA has been implemented yet. Linear Search looks perfect for SSA code, but Bin Packing would be better for Parrot. (Bin Packing views allocation as a bin packing problem and solves it heuristically.) 
Sincerely,
Watson Ladd
---
"Those who would give up Essential Liberty to purchase a little Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin 


PGP.sig
0 new messages