C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Naming Segments (/Nx)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /Nxsegment
 
     You can name the following segments with the option N<x> and the
     name of <segment>:
 
     Option     Segment       Effect
 
     /ND        dataseg       Creates three new segments and combines
                              them into the group dataseg_GROUP:
 
                              dataseg
                              dataseg_BSS
                              dataseg_CONST
 
     /NM        module        Sets name of module used in naming the
                              _TEXT segment of medium-, large-, or
                              huge-model programs.
 
     /NQ        pcodeseg      Names a temporary segment that is removed
                              before the program is run. During
                              compilation, the p-code compiler generates
                              several temporary segments. Use /NQ to
                              combine these segments if you encounter
                              LINK error 1049 ("too many segments").
 
     /NT        textseg       Sets code segment name.
 
     /NV        vtableseg     Sets the segment name for far virtual
                              tables. All far virtual tables in a C++
                              program are mapped to the specified
                              segment.
 
     The space between these options and <segment> is optional.
 
     See also: __based keyword
               alloc_text pragma
                                    -♦-