Running XL C/C++ programs

Canceling execution
Setting runtime options

The default file name for the program executable file produced by the XL C/C++ compiler is a.out. You can select a different name with the -o compiler option.

You can run a program by entering the name of a program executable file together with any runtime arguments on the command line.

You should avoid giving your program executable file the same name as system or shell commands (such as test or cp), as you could accidentally execute the wrong command. If you do decide to name your program executable file with the same name as a system or shell command, you can execute the program by specifying a path name to the directory in which your program executable file resides, such as ./test.

Canceling execution

To suspend a running program, press the Ctrl+Z key while the program is in the foreground. Use the fg command to resume running.

To cancel a running program, press the Ctrl+C key while the program is in the foreground.

Setting runtime options

You can use environment variable settings to control certain runtime options and behaviors of applications created with the XL C/C++ compiler. Other environment variables do not control actual runtime behavior, but can impact on how your applications run.

For more information on environment variables and how they can affect your applications at runtime, see Environment variables and XL C/C++.