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 > Re: Which part ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 8 Topic 2368 of 2529
Post > Topic >>

Re: Which part of optimization is most im****tant in a compiler?

by torbenm@[EMAIL PROTECTED] (Torben =?iso-8859-1?Q?=C6gidius?= Mogense Mar 25, 2008 at 03:30 PM

joggingsong@[EMAIL PROTECTED]
 writes:

>    I haven't taken the compiler course at college. Because my job is
> to optimize code on DSP, I hope to understand compiler deep and begin
> to read a compiler textbook. There are a lot of materials in a book,
> but the overview of advanced compiling is not given in the book.
>
> Maybe every part is im****tant for a optimized compiler. I hope to know
> which part of a compiler is most im****tant in a compiler. Instruction
> scheduling, or register allocation?

This depends a lot on both the target processor and the types of
programs you want to run.

If the target processor does out-of-order run-time scheduling of
instructions, compile-time scheduling is less im****tant than if the
processor runs instructions in the order they appear but with
pipelining or multiple simultanious instructions (that don't have
overlapping resource needs).  Scheduling is even more im****tant if you
need to explicitly group instructions that start at the same time, as
some DSPs (and Intel's Itanium) do.

Register allocation is im****tant if you have a limited number of
registers and register access is much more efficient than memory
access (which is usually the case).  It becomes even more im****tant
(and complex) if different instructions use different registers or if
there are instructions that can operate on multiple adjacent registers
or on parts of registers (which may allow allocating several small
values in on register).

DSPs are notoriously difficult for compilers to generate optimal code
for, since they commonly have specialised registers,
multiple/part-register operations and need for explicit grouping of
instructions (or at least compile-time scheduling).

	Torben
 




 8 Posts in Topic:
Which part of optimization is most important in a compiler?
joggingsong@[EMAIL PROTEC  2008-03-23 20:38:16 
RE: Which part of optimization is most important in a compiler?
"Murugesh" <  2008-03-25 17:57:21 
Re: Which part of optimization is most important in a compiler?
torbenm@[EMAIL PROTECTED]  2008-03-25 15:30:44 
Re: Which part of optimization is most important in a compiler?
kphillips <kevin.phill  2008-03-27 03:18:51 
Re: Which part of optimization is most important in a compiler?
=?ISO-8859-1?Q?Pertti_Kel  2008-03-28 10:05:01 
Re: Which part of optimization is most important in a compiler?
Nils <n.pipenbrinck@[E  2008-03-30 15:59:23 
Re: Which part of optimization is most important in a compiler?
Brooks Moses <bmoses-n  2008-03-25 14:46:17 
Re: Which part of optimization is most important in a compiler?
joggingsong@[EMAIL PROTEC  2008-04-02 06:15:13 

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 14:29:34 CDT 2008.