opt.2 will take place.
On Tuesday 06 April 2004 18:25, Baudoin, Jody (MED, GEMS-IT) wrote: > Greetings, > > I was attempting to ask if function placement matters with respect to > optimization. > > For instance: > > -- Ex 1-------------------------------------------------------- > void functionX(); > > functionY() { functionX(); /*note functionX is below in the file*/ } > > functionX() { bla bla } > > ---Ex 2----------------------- ------------------- > > static void functionX() { bla bla } > > functionY() { functionX(); /*X is above in the file */ } > ---------------------------------------------------------- > > I had the prejudice that compilers might be more willing to > optimize Ex 2. > > Regards, > Jody > > >i'm not clear about what you're asking. > >conditional compilation? it does. > > On Tuesday 06 April 2004 17:59, Baudoin, Jody (MED, GEMS-IT) wrote: > > Greetings wise ones, > > > > Question: Does optimization occur within a file conditional upon > > relative placement of caller & called functions? > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users