05.08.2013 Views

CodeWarrior Smart Linker Manual

CodeWarrior Smart Linker Manual

CodeWarrior Smart Linker Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Environment<br />

The Current Directory<br />

The Current Directory<br />

The most important environment for all tools is the current directory. The current<br />

directory is the base search directory where the tool starts to search for files (for<br />

example, for the DEFAULT.ENV / .hidefaults)<br />

Normally, the current directory of a tool started is determined by the operation system<br />

or by the program who launches another one (for example, WinEdit).<br />

For the UNIX operating system, the directory in which, an executable is started is also<br />

the current directory from where the binary file has been started.<br />

For MS Windows based operating systems, the current directory definition is quite<br />

complex:<br />

If the tool is launched using a File Mana ger/Explorer, the current directory is the<br />

location of the executable launched.<br />

If the tool is launched using an Icon on the Desktop, the current directory is the<br />

working directory specified and associated with the Icon.<br />

If the tool is launched by dragging a fi le on the icon of the executable under<br />

Windows 95 or Windows NT 4.0, the desktop is the current directory.<br />

If the tool is launched by another launchi ng tool with its own working directory<br />

specification (e.g. an editor as WinEdit), the current directory is the one specified<br />

by the launching tool (e.g. working directory definition in WinEdit).<br />

Changing the current project file does also change the current directory if the<br />

other project file is in a different directory. Note that browsing for a prm file does<br />

not change the current directory.<br />

To overwrite this behavior, the environment variable DEFAULTDIR may be used.<br />

The current directory is displayed among other information with the linker option “-v”<br />

and in the about box.<br />

Global Initialization File (MCUTOOLS.INI)<br />

(PC only)<br />

All tools may store some global data into the MCUTOOLS.INI. The tool first searches<br />

for this file in the directory of the tool itself (path of the executable). If there is no<br />

MCUTOOLS.INI file in this directory, the tool looks for a MCUTOOLS.INI file<br />

located in the MS Windows installation directory (for example, C:\WINDOWS).<br />

Example:<br />

40 <strong>Smart</strong> <strong>Linker</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!