Dev Studio

For more information about using Devenv at the command line, you can do run
Common7\tools\VSVars32.bat  at the command line, and then run 'devenv /?'
for more details.

=============================================================================

gnu
compile
gcc -ansi -Wall -Ipath -g -c *.c
link
gcc -o ccloudy.exe *.o -lm

-pedantic turns on lots of flags

-Wall lesser form of warnings

-v tells which version of the compiler

to profile, put -pg on both compile and link
then run the code, then 
gprof ccloudy.exe > profile.out

=============================================================================

sgi
cc -ansi -c -Ofast -w -I<source-dir> *.c
cc -IPA *.o -lm

=============================================================================

alpha
compile
cc -lm -Ipath -std1 -g -c *.c
-std1 says ansi c
link
cc -g -o cc.exe *.o -lm
this sets fp environemt to crash on div by 0

=============================================================================

sparc
cc -v -Xc -Ipath -lm -g -c *.c
link
cc -g -o cc.exe *.o -lm

==============================================================================

exemplar
compile
cc -g -Ipath -c +FPZ +FPO *.c
FP options cause overflow and div by zero trapping, and are described in the loader page - do man ld
link
cc -g -o ccloudy.exe +FPZ +FPO *.o -lm
FP'Zee' and FP'Oh'

==============================================================================
