473,503 Members | 12,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

gcc power optimization

AJ
Hi,

I am trying to optimize gcc for power consumption. Technique I am
using is rescheduling instruction based on hamming distance between
two consecutive instructions. Now I want to create a new pass after
register allocation and final jump optimization. I am new to gcc
development and am having trouble finding out how to create a new
pass. Also I understand my scheduler will have to operate on RTL code.
what would be the data structures I would need to create or which ones
could be reused.

How much code from schedule_insns() could be reused. I only need to
change the cost model in it.

Any kind of suggestion from you experts would be very beneficial for
me.

Alex
Nov 7 '08 #1
2 2715
AJ <al***********@gmail.comwrites:
I am trying to optimize gcc for power consumption. Technique I am
using is rescheduling instruction based on hamming distance between
two consecutive instructions. Now I want to create a new pass after
register allocation and final jump optimization. I am new to gcc
development and am having trouble finding out how to create a new
pass. Also I understand my scheduler will have to operate on RTL code.
what would be the data structures I would need to create or which ones
could be reused.

How much code from schedule_insns() could be reused. I only need to
change the cost model in it.

Any kind of suggestion from you experts would be very beneficial for
me.
I'll have to take your word for it that this will optimize power
consumption, but in any case your question isn't about the C
programming language. comp.compilers is probably a better place to
ask.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Nov 7 '08 #2
Keith Thompson wrote, On 07/11/08 05:44:
AJ <al***********@gmail.comwrites:
>I am trying to optimize gcc for power consumption. Technique I am
<snip>
I'll have to take your word for it that this will optimize power
consumption, but in any case your question isn't about the C
programming language. comp.compilers is probably a better place to
ask.
I would suggest the gcc development mailing list might be better as some
of the question is highly specific to gcc.

Also from personal experience I would suggest that the OP start be
looking at the design of the SW that will be built with gcc first. On
one project by judicious changes I was able to end up with the processor
spending a lot of time in its idle state not executing *any*
instructions (just waiting for an interrupt) and this can save a lot of
power. Such discussions, however, belong on comp.arch.embedded not here.
--
Flash Gordon
If spamming me sent it to sm**@spam.causeway.com
If emailing me use my reply-to address
See the comp.lang.c Wiki hosted by me at http://clc-wiki.net/
Nov 7 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3974
by: Stephane Belzile | last post by:
Is there a way I can detect in vb.Net the power has switched to a UPS unit in case of power failure? Thanks
12
2823
by: Roman Töngi | last post by:
I just want to raise a number to a power. e.g.: 16^2 The pow()-function of cmath seems to be not enough. I've read about valarray. Is it really so difficult? Can you give me an example. ...
9
2378
by: Rune | last post by:
Is it best to use double quotes and let PHP expand variables inside strings, or is it faster to do the string manipulation yourself manually? Which is quicker? 1) $insert = 'To Be';...
12
6153
by: WantedToBeDBA | last post by:
Hi all, db2 => create table emp(empno int not null primary key, \ db2 (cont.) => sex char(1) not null constraint s_check check \ db2 (cont.) => (sex in ('m','f')) \ db2 (cont.) => not enforced...
21
2550
by: mjbackues at yahoo | last post by:
Hello. I'm having a problem with the Visual Studio .net (2003) C++ speed optimization, and hope someone can suggest a workaround. My project includes many C++ files, most of which work fine...
21
4152
by: utab | last post by:
Hi there, Is there a way to convert a double value to a string. I know that there is fcvt() but I think this function is not a part of the standard library. I want sth from the standard if...
5
2370
by: wkaras | last post by:
I've compiled this code: const int x0 = 10; const int x1 = 20; const int x2 = 30; int x = { x2, x0, x1 }; struct Y {
32
3290
by: chris.fairles | last post by:
Just want an opinion. I have an algorithm that needs to run as fast as possible, in fact. Its already too slow. I've done as much algorithmic changes as I can to reduce the amount of code, so now...
20
2317
by: Ravikiran | last post by:
Hi Friends, I wanted know about whatt is ment by zero optimization and sign optimization and its differences.... Thank you...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.