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?
>

Reply via email to