Generates an assembler language file (.s) for each source file. The resulting .s files can be assembled to produce object .o files or an executable file (a.out).
>>- -S---------------------------------------------------------><
You can invoke the assembler with any XL C/C++ invocation command. For example,
xlc++ myprogram.s
will invoke the assembler, and if successful, the loader to create an executable file, a.out.
If you specify -S with -E or -P, -E or -P takes precedence. Order of precedence holds regardless of the order in which they were specified on the command line.
You can use the -o option to specify the name of the file produced only if no more than one source file is supplied. For example, the following is not valid:
xlc++ myprogram1.C myprogram2.C -o -S
xlc++ myprogram.C -S
xlc++ myprogram.s -c
xlc++ myprogram.C -S -o asmprogram.s
Related information