![HP nld Скачать руководство пользователя страница 36](http://html.mh-extra.com/html/hp/nld/nld_manual_165146036.webp)
nld Utility
nld and noft Manual — 520384-003
2 -8
Changing the Target Environment
Changing the Target Environment
The target environment is the environment in which you intend to run the program file.
By default, the Guardian version of
nld
builds files intended to run in the Guardian
environment and the OSS version of
nld
builds files intended to run in the OSS
environment.
To build a program file intended to run in the Guardian environment using the OSS
version of
nld
, specify:
-set systype guardian
To build a program file intended to run in the OSS environment using the Guardian
versions of
nld
, specify:
-set systype oss
Example 2-9
, in the OSS environment, links the object files names
obj6.o
and
obj7.o
into a program named
prog
that you intend to run as a Guardian process.
Creating Loadfiles and Linkfiles
A loadfile cannot be linked to a new object file, it can be used only as input to
nld
with
options that modify an existing loadfile. A linkfile can be used as
nld
input again.
nld
creates a loadfile if you do not specify the
-r
flag. If you do specify the
-r
flag,
nld
creates a linkfile.
Note.
In some cases, such as when C/C++ programs include
stdio.h
, setting the target
environment with the
-set systype
option might result in a program that executes incorrectly
in the specified environment. In such cases, you must specify the
systype
option on the
compiler command line to ensure the correct code is created.
Example 2-9. Creating a Program for the Guardian Environment (OSS)
nld obj6.o obj7.o -o prog -set systype guardian
Содержание nld
Страница 12: ...Contents nld and noft Manual 520384 003 x ...
Страница 16: ...What s New in This Manual nld and noft Manual 520384 003 xiv Miscellaneous ...
Страница 22: ...About This Manual nld and noft Manual 520384 003 xx Change Bar Notation ...
Страница 28: ...Introduction to the Utilities nld and noft Manual 520384 003 1 6 strip ...
Страница 60: ...nld Utility nld and noft Manual 520384 003 2 32 Declaration and Definition ...
Страница 78: ...nld Options nld and noft Manual 520384 003 3 18 y ...
Страница 90: ...noft Utility nld and noft Manual 520384 003 4 12 Debugging With noft ...
Страница 150: ...strip Utility nld and noft Manual 520384 003 7 2 ...
Страница 160: ...Converting From Binder to nld and noft nld and noft Manual 520384 003 9 8 Comparing Binder Commands to noft Options ...
Страница 242: ...nld Diagnostic Messages nld and noft Manual 520384 003 10 82 Informational Messages ...
Страница 278: ...noft Diagnostic Messages nld and noft Manual 520384 003 11 36 Syntax Errors ...
Страница 286: ...ar Diagnostic Messages nld and noft Manual 520384 003 12 8 ...
Страница 314: ...Sample nld and noft Session nld and noft Manual 520384 003 A 28 LISTSRLFIXUPS ...
Страница 330: ...Index nld and noft Manual 520384 003 Index 10 Special Characters ...