// // This file is part of the Bones source-to-source compiler examples. This C-code // example is meant to illustrate the use of Bones. For more information on Bones // use the contact information below. // // == More information on Bones // Contact............Cedric Nugteren // Web address........http://parse.ele.tue.nl/bones/ // // == File information // Filename...........shared/example3.c // Author.............Cedric Nugteren // Last modified on...16-April-2012 // #include #include #define SIZE 1024 // This is 'example3', demonstrating a reduction to a 2D array int main(void) { int i,p,q; int index1,index2; // Declare input/output arrays int *in = (int *)malloc(SIZE*sizeof(int)); int B[20][10]; // Set the input data for(i=0;i 0:19,0:9|shared for(i=0;i