None.
Specifies a file containing a list of additional command line options to be used for the compilation.
None.
When processed, the compiler removes the -qoptfile option from the command line, and sequentially inserts the options included in the file before the other subsequent options that you specify.
The -qoptfile option is also valid within an option file. The files that contain another option file are processed in a depth-first manner. The compiler avoids infinite loops by detecting and ignoring cycles in option file inclusion.
If -qoptfile and -qsaveopt are specified on the same command line, the original command line is used for -qsaveopt. A new line for each option file is included representing the contents of each option file. The options contained in the file are saved to the compiled object file.
None.
$ cat options.file
# To perform optimization at -O4 level, and high-order
# loop analysis and transformations during optimization
-O4 -qhot
# To generate position-independent code
-qpic
$ xlC -qlist -qoptfile=options.file -qipa test.c
The
preceding example is equivalent to the following invocation:$ xlC -qlist -O4 -qhot -qpic -qipa test.c
$ cat options.file2
# To perform optimization at -O4 level, and high-order
# loop analysis and transformations during optimization
-O4 -qhot
# To include the -qoptfile option in the same option file
-qoptfile=options.file2
# To generate position-independent code
-qpic
# To produce a compiler listing file
-qlist
$ xlC -qlist -qoptfile=options.file2 -qipa test.c
The
preceding example is equivalent to the following invocation:$ xlC -qlist -O4 -qhot -qpic -qlist -qipa test.c
$ cat options.file1
-O4 -qhot
-qoptfile=options.file2
-qfixed
$ cat options.file2
-qfree
$ xlC -qoptfile=options.file1 test.c
The
preceding example is equivalent to the following invocation:$ xlC -O4 -qhot -qfree -qfixed test.c
$ cat options.file3
-O4
-qhot
$ xlC -qsaveopt -qipa -qoptfile=options.file3 test.c -c
$ what test.o
test.o:
opt f xlC -qsaveopt -qipa -qoptfile=options.file3 test.c -c
optfile options.file3 -O4 -qhot