7.9.1.4. Local Variables for FunctionsΒΆ

Within GEL functions, you can declare local variables and you can use variables defined in your target program. When a target variable is evaluated, the Code Composer Studio debugger obtains the necessary information from the target. The COFF file containing the symbol information must already be loaded.

In the following example, the variable i is declared within the GEL function and the variable data is assumed to be a target symbol.

MyFunc(num)
{
int i;
for (i=0; i<=num; i++)
data[i] = 0;
}

It is possible to use globals within GEL functions (See Global Variables for GEL Functions ).