C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
code_seg
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
  Pragma:   code_seg
 
  Syntax:   #pragma code_seg ( [ "seg_name" [, "seg_class" ] )
 
  Summary:  Specifies a segment where functions are to be
            allocated.
 
  See also: data_seg
 
     The code_seg pragma specifies a segment where functions are to be
     allocated, allowing the use of based allocation without rewriting
     code. Using #pragma code_seg is equivalent to using __based when
     __based is used for allocation. You can specify the class for the
     segment by giving the <seg_class> as a string. Using #pragma
     code_seg without a <seg_name> string resets allocation to
     whatever it was when compilation began.
                                    -♦-