Configuring the command-line environment

Configure the environment

The XTC Tools require an operating environment to be setup. This environment is formed with a set of environment variables, and these are used when the tools are searching for header files, libraries and target devices (see Environment variables).

All Command Prompt command-line examples in this document use the $ character to illustrate the prompt at which the commands are entered.

  1. Click on the Windows Start Icon to open the Start menu

  2. Choose XMOS–>XTC Tools v15.3 .1 Command Prompt

    This will open an Command Prompt with the required environment variables set. All XTC Tools commands must be entered in this Command Prompt.

  3. Type:

    $ xcc --version
    

    The reported version should be provided in any bug report.

  1. Open a Terminal window

  2. Enter the following command:

    $ /Applications/XMOS_XTC_15.3.1/SetEnv.command
    

    All XTC Tools commands must be entered in a Terminal in which this command has been run.

  3. Type:

    $ xcc --version
    

    The reported version should be provided in any bug report.

  1. Open a Terminal window

  2. Change to the installation directory and enter the following command:

    $ source SetEnv
    

    All XTC Tools commands must be entered in a Terminal in which this command has been run.

  3. Type:

    $ xcc --version
    

    The reported version should be provided in any bug report.