6
SKILL IDE Debugger Example File
The following sample program is designed to illustrate the various features of the SKILL IDE debugger. Using the sample program you learn how to use the SKILL IDE tool to analyze and debug a program to improve its performance.
The following is the sample program file that is used for an example.
<your_install_dir>/tools/dfII/samples/skill/demo.il
The sample program file, demo.il has the following contents:
/* demo.il - This file is used for a walkthrough of the
* SKILL Development Environment.
*/
/*******************************************************
* myFunction1 - This function must
* Count from 1 to 10000.
* Return a list of numbers from 1 to 1000 in any order.
********************************************************/
(procedure myFunction1()
let((x y z myList)
for( i 1 10000
myList = myFunction2(i)
)
myList
)
)
/*******************************************************
* myFunction2 - This function must
* Print a starting message on the 1st object.
* Print an ending message at the 1000th object.
* Return a list of numbers less than 1000 in any order.
********************************************************/
(procedure myFunction2(object myList)
if(myTest(object)
then printf("Starting with object %d...\n" object)
)
if(object == 1000
then printf("Ending with object %d...\n" object)
)
if(object < 1000
then append(myList ncons(object ))
else myList
)
)
/*******************************************************
* myTest - This function must
* return t if object equals one.
********************************************************/
(procedure myTest(object)
if(object == 10
then t
else nil
)
)
Related Topics
Loading and Running the Example File
Using Breakpoints to Find and Correct a Functional Error
Return to top