SourcePoint Intel Help

Table of Contents

proc

Display a debug procedure.

Syntax

proc proc-name

Discussion

The proc command displays a debug procedure (proc-name) that has been previously defined with the define command.

Example

The following example shows how to define a procedure named "power." This proc returns the result of a value and its exponent.

Command input:

define proc power(arg1, arg2)

define int1 arg1

define int1 arg2

{

ย ย ย define int1 index

ย ย ย define ord4 result = 1

ย ย ย for (index = 1 ; index <= arg2 ; index += 1)

ย ย ย ย ย ย result = result * arg1

ย ย ย return result

}

proc power

Result:

define proc power(arg1, arg2)

define int1 arg1

define int1 arg2

{

ย ย ย define int1 index

ย ย ย define ord4 result = 1

ย ย ย for (index = 1 ; index <= arg2 ; index += 1)

ย ย ย ย ย ย result = result * arg1

ย ย ย return result

}