Follow these guidelines to optimize small programs:
If the problem code is isolated and runs without KAP optimization, you may be able to run KAP on the rest of the program and leave out any problematic sections.
You can also refer to the section on KAP problems in this chapter. You may be able to diagnose and correct some problems, and then run KAP on your program successfully.
/optimize=4
.
If step 2 fails, try reducing one optimization at a time
(/roundoff=0
, /scalaropt=1
,
/optimize=3
, and any compiler optimizations) until
the program runs correctly. Use the /lo=k
qualifier
setting to create a listing of the KAP command-line qualifiers
and settings.