Sha256: a9bf489ee4ee7fdf0a8ed67a93fd77171f661ad7481f78e2a7e1b744a8612075
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
// // 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 <c.nugteren@tue.nl> // Web address........http://parse.ele.tue.nl/bones/ // // == File information // Filename...........dependences/example02.c // Author.............Cedric Nugteren // Last modified on...07-May-2013 // #include <stdio.h> // This is 'example02', an element -> element example WITH dependences. int main(void) { int i; int N = 256; // Declare input/output arrays int A[N]; // Set the input data for(i=0;i<N;i++) { A[i] = i; } // Perform the computation for (i=0; i<N; i++) { // Read-write dependence A[2*i+6] = A[3*i+1]; } // Clean-up and exit the function fflush(stdout); return 0; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bones-compiler-1.3.1 | examples/dependences/example02.c |