#include #define DATA_LGD 3 // Normally longer static int sqr2(const short (*a)[2], int n) { int max = 0; int i; for(i = 0; i max) { max = tmpa; } } return max; } void main(void) { printf("Hello World example expanded to show CCS5 optimize error.\n"); int num = DATA_LGD; // Normally higher value const short data[DATA_LGD][2] = {{0, 1},{0, 1},{0, 1}}; int res = sqr2(data, num); printf("Dummy result: %i", res); }