CS 575 Supercomputing
Lab 4: Hands-on examples for Chapter 4: Floating Point Computing and Compilers (prep for Chapter 5 next week)

October 2, 2002 (upd)

Dr. Kris Stewart stewart@sdsu.edu)
San Diego State University

This URL is stewart.cs.sdsu.edu/cs575/labs/l4_flpt_compiler.html

Hands-on examples for Chap. 4 (lectured on Monday)


To begin our preparation for next week lectures on Chapter 5: What a Compiler Does, there are some additional files I would like you to examine.
mkdir stommel
cp ~stewart/cs575/fall02/stommel/* .
f90 -flags
f90 -o stf_00 stf_00.f90 -Xlist
stf_00 < st.in
f90 -o stf_00_O4 -O4 stf_00.f90 Note: O4 ("oh" 4) not 04 ("zero" 4)
stf_00_O4 < st.in
Do you notice a difference?
cc -flags
cc -o stc_00 stc_00.c -lm
stc_00 < st.in
cc -o stc_00_fast -fast stc_00.c -lm
stc_00_fast < st.in
run_s, run_s is a script file to run both the F90 and C examples and gather output in stf_00.out and stc_00.out.
Return to CS 575 Home Page