Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Help with Live ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 2293 of 2529
Post > Topic >>

Help with Live Range Analysis?

by John Carney <j.carney@[EMAIL PROTECTED] > Jan 12, 2008 at 09:28 PM

Compiler Gurus,

I am working on a microcode project where register allocation is done
by the programmer. There is nothing which prevents the programmer from
allocating two or more variables to the same register and then
inadvertently writing code with overlapping live ranges for those
variables. The microcode assembler trusts the register allocation and
this results in (numerous) bugs which are difficult to find.

I can easily convert the code into a reprentation like that
below. Basically I can represent the writing and reading of variables
and the branching of the code. What I am looking for is a tool which
will do an analysis and re****t the set of variables which are live at
every point in the code. I can then use process this to determine that
for each set of live variables there are unique registers allocated.

I am not looking to build a compiler (or modify one) and do the
register allocation, I am just looking for something "simple" to take
a representation and give me a detailed re****t on variable live
ranges.

Any advice or pointers would be greatly appreciated.

Sample representation for analysis tool:

label_1:
    write a;
    write b;

label_2:
    read a;
    write c;

    nway_branch label_3 label_5 label_8;

label_3:

    .
    .
    .
 




 6 Posts in Topic:
Help with Live Range Analysis?
John Carney <j.carney@  2008-01-12 21:28:55 
Re: Help with Live Range Analysis?
Steven Nichols <sdn@[E  2008-01-13 11:20:48 
Re: Help with Live Range Analysis?
Rayiner Hashem <rayine  2008-01-13 18:20:06 
Re: Help with Live Range Analysis?
Rayiner Hashem <rayine  2008-01-13 20:38:59 
Re: Help with Live Range Analysis?
Hans-Peter Diettrich <  2008-01-14 15:26:52 
Re: Help with Live Range Analysis?
John Carney <j.carney@  2008-01-17 02:31:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 8:05:45 CDT 2008.