24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

-o Option<br />

Syntax<br />

-o name<br />

Specifies a name <strong>for</strong> the output object, executable, or assembler source file.<br />

To choose the name <strong>for</strong> an object file, use this option in combination with the -c<br />

option. For an assembler source file, use it in combination with the -S option.<br />

Defaults<br />

The default name <strong>for</strong> an executable file is a.out. The default name <strong>for</strong> an object or<br />

assembler source file is the same as the source file except that it has a .o or .s<br />

extension.<br />

Rules<br />

Except when you specify the -c or -S option, the -o option is passed directly to the<br />

ld command, instead of being processed by <strong>XL</strong> <strong>Fortran</strong>.<br />

Examples<br />

xlf95 t.f<br />

xlf95 -c t.f<br />

xlf95 -o test_program t.f<br />

xlf95 -S -o t2.s t.f<br />

# Produces "a.out"<br />

# Produces "t.o"<br />

# Produces "test_program"<br />

# Produces "t2.s"<br />

116 <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> : User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!