02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Program units and procedures<br />

Arguments<br />

Here are the command lines to compile and link both files, and to execute the program, along<br />

with the output from a sample run:<br />

$ cc -Aa -c get_args.c<br />

$ f90 pass_args.f90 get_args.o<br />

$ a.out<br />

First argument: 20<br />

Second argument: 3.400000<br />

Third argument: Hi!<br />

Fourth argument: 12<br />

For additional information about multi-language programming, refer to the<br />

<strong>HP</strong> <strong>Fortran</strong> Programmer’s Guide. The built-in functions can also be used with the ALIAS<br />

directive, where they have a slightly different syntax.<br />

148<br />

Chapter 7

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

Saved successfully!

Ooh no, something went wrong!