◄Up► ◄Contents► ◄Index► ◄Back► ─────C/C++ Language───────────────────────────────────────────────────────── Pragma: data_seg Syntax: #pragma data_seg ( [ "seg_name" [, " seg_class" ] ) Summary: Specifies a segment where data is to be allocated. See also: __based, __loadds, code_seg ◄Naming Segments► The data_seg pragma specifies a segment where data is to be allocated, allowing the use of based allocation without rewriting code. Using #pragma data_seg is equivalent to using __based when __based is used for allocation. The <seg_class> parameter allows you to assign a segment class to a segment name. This pragma applies only to initialized data and does not affect tentative definitions. Using #pragma data_seg without a <seg_name> string resets allocation to whatever it was when compilation began. NOTE: The data_seg pragma is not equivalent to the data_seg pragma supported by earlier versions of the compiler. -♦-