How to do executable individualization using optimization options ?
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
How to do executable individualization using optimization options ?
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
Re: How to do executable individualization using optimization options ?
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 wrote: > Byoungyoung Lee 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-h...@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 >