// // 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...........dependences/example01.c // Author.............Cedric Nugteren // Last modified on...11-October-2014 // #include // This is 'example01', an element -> element example WITHOUT dependences. int main(void) { int i; int N = 256; // Declare input/output arrays int A[N]; // Set the input data for(i=0;i A[6:2*N+4]|element for (i = 0; i < N; i++) { A[2 * i + 6] = A[8 * i + 1]; } #pragma species endkernel example01_k1 } #pragma endscop // Clean-up and exit the function fflush(stdout); return 0; }