Name: Anonymous 2008-02-14 20:05
Hey /prog, research student here, working on a language to describe a timer for functions. I'm creating an example of what the timer language will look like for a given specification. It's got some pseudo-C, pseudo-scripting ideas, since the timer will be processed into C from this input. This is far from complete, but suggestions and discussion are welcome.
typedecl TYPE (int *);
define VECTOR(n) ((int *) calloc (n * sizeof(int))); //makes a vector of n-elements
ROUTINE = void ATL_UDOT(const int N, const TYPE *X, const int incX, const TYPE *Y, const int incY, TYPE *dotc);
ARGS = {
N = 100..999;
X = VECTOR(N), //init. starts at N=100, updates upon each iteration
for 0..N-1 do X[_]=rand();
flushcache(1024*1024); //flushes 1024*1024 bytes (1MB) from the cache
incX = 10;
Y = VECTOR(N),
for 0..N-1 do Y[_]=rand();
flushcache(1024*1024);
incY = 10;
dotc = VECTOR(2);
};