Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - -nt<x> set code segment name http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 -Nt<x>              Set code segment name
------------------------------------------------------------------------------
 Syntax
   -Nt<segment>

 Arguments
   <segment> is the name of the code segment for the module.

 Default
   The name of the code segment is <module>_TEXT.

 Description
   The -Nt<x> switch instructs the compiler to rename the module's
   code segment. By default the compiler generates code segment names
   that conform with the convention for large model object modules, that
   is the source file base name with the _TEXT suffix appended. For
   example, the code segment of a module called test1.prg will be
   TEST1_TEXT. This method avoids the chance that large applications
   might reach the 64 K code segment limit.

   The -Nt switch allows to override the default code segment name. This
   is useful when generating code for a function library with various modules
   combined in one code segment.

   The #pragma CODESEG directive can alternatively be used in the source
   code to set the code segment name.

 Example
   . Set the code segment name for this module to LIB_CODE
   
     force.exe -NtLIB_CODE test.prg

See Also: #pragma CODESEG

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson