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 LCC > Multi-pass lcc
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 988 of 1062
Post > Topic >>

Multi-pass lcc

by kostas@[EMAIL PROTECTED] Oct 6, 2007 at 09:44 AM

Hi, everybody. I am new to this news group but I have been using lcc
for a while.

I am currently in the process of implementing optimizations. This
specific optimization I want to perform has to estimating the size of
an address jump. My architecture sup****ts a couple of branching and
function calling instruction that can jump to different offsets. The
shorter instructions can sup****t shorter jumps and longer instructions
sup****t longer jumps.

My first approach to determine how far an instruction needs jump is to
count the number of instructions generated in between by lcc. That way
I can produce an lower bound of the address space size that the jump
is covering by multiplying instructions in between by the maximum
instruction length.

In order to determine how many instructions get emitted I need to
perform a code generation pass before the actual code generation. My
question is:

1. What is the recommended way of doing mult-p***** with lcc.
2. What is the recommended method to estimate the address space size
covered by jump instructions (branches or function calls)

Thank you very much.
 




 2 Posts in Topic:
Multi-pass lcc
kostas@[EMAIL PROTECTED]   2007-10-06 09:44:31 
Re: Multi-pass lcc
Uncle Noah <nkavv@[EMA  2007-10-06 18:38:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Jul 25 20:02:27 CDT 2008.