AnsweredAssumed Answered

Questions about 'section' directives

Question asked by JWellbelove on Jan 30, 2012
Latest reply on Jan 31, 2012 by CraigG

I am a little unclear about the exact nature of the effect of section directives when it comes to classes.

For example, which of the following declarations will ensure that the code for the member functions reside in "L1_Code"?

 

class C

{

public:

    void F()

    {

        // Some code.

    }

};

 

section("L1_Code")

C cInstance;

 

OR

 

class C

{

public:

  section("L1_Code")

    void F()

    {

        // some code.

    }

};

 

C cInstance;

Outcomes