The most important environment for all tools is the current directory. The current directory is the base search directory where the tool starts to search for files (e.g., for the
default.env file).
The current directory of a tool is determined by the operating system or by the program which launches another one.
- For the
UNIX operating system, the current directory of an launched executable is also the current directory from where the binary file has been started.
- For MS
Windows based operating systems, the current directory definition is defined as follows:
- If the tool is launched using the
File Manager or
Explorer, the current directory is the location of the launched executable.
- If the tool is launched using an Icon on the Desktop, the current directory is the one specified and associated with the Icon.
- If the tool is launched by another launching tool with its own current directory specification (e.g., an editor), the current directory is the one specified by the launching tool (e.g., current directory definition).
- For the tools, the current directory is where the local project file is located. Changing the current project file also changes the current directory if the other project file is in a different directory. Note that browsing for a C file does not change the current directory.
To overwrite this behavior, use the environment variable
DEFAULTDIR: Default Current Directory.
The current directory is displayed, with other information, using the
-V: Prints the Compiler Version compiler option and in the
About dialog box.