public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* How to do executable individualization using optimization options ?
@ 2009-11-07  9:38 Byoungyoung Lee
  0 siblings, 0 replies; 4+ messages in thread
From: Byoungyoung Lee @ 2009-11-07  9:38 UTC (permalink / raw)
  To: gcc

If the optimization options provided in a different way,
the same source codes would be compiled into different executables.

In the different executables,
the register allocation or instruction orders might be easily changed,
but I think that's not that big change.
What I'd like to do is to make their CFG different, while their impact
on executing performance is reasonable.

I'm reading through the compiler books and gcc internal documentations,
but it's really hard for me to pin point what I really need to read
and understand.

So, my question is what kind of optimizing options in gcc could be
used to do such jobs ?
or would you recommend good references for this ?

Regards,
Byoungyoung Lee

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to do executable individualization using optimization options   ?
  2009-11-07 19:36 ` Ian Lance Taylor
@ 2009-11-09  3:01   ` Byoungyoung Lee
  0 siblings, 0 replies; 4+ messages in thread
From: Byoungyoung Lee @ 2009-11-09  3:01 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc

Yes, that's what I want to do.
As I mentioned in the subject, I'd like to realize s/w
individualization via compiler optimization,
and I still need to think of some more techniques.
Thanks for your help.

Regards,
Byoungyoung Lee

On Sun, Nov 8, 2009 at 4:36 AM, Ian Lance Taylor <iant@google.com> wrote:
> Byoungyoung Lee <lifeasageek@gmail.com> writes:
>
>> If the optimization options provided in a different way,
>> the same source codes would be compiled into different executables.
>>
>> In the different executables,
>> the register allocation or instruction orders might be easily changed,
>> but I think that's not that big change.
>> What I'd like to do is to make their CFG different, while their impact
>> on executing performance is reasonable.
>>
>> I'm reading through the compiler books and gcc internal documentations,
>> but it's really hard for me to pin point what I really need to read
>> and understand.
>>
>> So, my question is what kind of optimizing options in gcc could be
>> used to do such jobs ?
>> or would you recommend good references for this ?
>
> Sorry, I don't understand the question.  Are you asking what gcc
> options will produce a different CFG?  If so, this question would be
> better asked on gcc-help@gcc.gnu.org.  One answer is that you will get
> a slightly different CFG from options like -funroll-loops.  In general
> there are a number of options which could change the CFG.  But I'm not
> sure why you are asking the question.
>
> Ian
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to do executable individualization using optimization options ?
  2009-11-07 13:22 Byoungyoung Lee
@ 2009-11-07 19:36 ` Ian Lance Taylor
  2009-11-09  3:01   ` Byoungyoung Lee
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2009-11-07 19:36 UTC (permalink / raw)
  To: Byoungyoung Lee; +Cc: gcc

Byoungyoung Lee <lifeasageek@gmail.com> writes:

> If the optimization options provided in a different way,
> the same source codes would be compiled into different executables.
>
> In the different executables,
> the register allocation or instruction orders might be easily changed,
> but I think that's not that big change.
> What I'd like to do is to make their CFG different, while their impact
> on executing performance is reasonable.
>
> I'm reading through the compiler books and gcc internal documentations,
> but it's really hard for me to pin point what I really need to read
> and understand.
>
> So, my question is what kind of optimizing options in gcc could be
> used to do such jobs ?
> or would you recommend good references for this ?

Sorry, I don't understand the question.  Are you asking what gcc
options will produce a different CFG?  If so, this question would be
better asked on gcc-help@gcc.gnu.org.  One answer is that you will get
a slightly different CFG from options like -funroll-loops.  In general
there are a number of options which could change the CFG.  But I'm not
sure why you are asking the question.

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to do executable individualization using optimization options ?
@ 2009-11-07 13:22 Byoungyoung Lee
  2009-11-07 19:36 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Byoungyoung Lee @ 2009-11-07 13:22 UTC (permalink / raw)
  To: gcc

If the optimization options provided in a different way,
the same source codes would be compiled into different executables.

In the different executables,
the register allocation or instruction orders might be easily changed,
but I think that's not that big change.
What I'd like to do is to make their CFG different, while their impact
on executing performance is reasonable.

I'm reading through the compiler books and gcc internal documentations,
but it's really hard for me to pin point what I really need to read
and understand.

So, my question is what kind of optimizing options in gcc could be
used to do such jobs ?
or would you recommend good references for this ?

Regards
Byoungyoung Lee

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-09  3:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-07  9:38 How to do executable individualization using optimization options ? Byoungyoung Lee
2009-11-07 13:22 Byoungyoung Lee
2009-11-07 19:36 ` Ian Lance Taylor
2009-11-09  3:01   ` Byoungyoung Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).