Dev Studio
profiling - this is a multi-stop process that is done from the command prompt.

compile with profiling enabled under project/settings/link

from the subdir where all the prog files live, turn on profiling with
prep ccloudy.exe
this creates lots of ccloudy.* files

execute code with
profile ccloudy < commands.in
creates ccloudy.pbo file

prep /m ccloudy
creates ccloudy.pbt file

plist /options ccloudy > ccloudy.lst creates output a person can read

all this is in the runprof.bat file in  the debug subdir

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'

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

Absoft C/C++ options
defines =Dname[=value]

undefines -Uname

quiet -q suppress standard compiler output

ANSI C -A

std C++ -std