This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to do executable individualization using optimization options ?
- From: Ian Lance Taylor <iant at google dot com>
- To: Byoungyoung Lee <lifeasageek at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 07 Nov 2009 11:36:16 -0800
- Subject: Re: How to do executable individualization using optimization options ?
- References: <ba3207a80911070522q49ed7662pd3bb07b6795fe1ef@mail.gmail.com>
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