Le 10-12-07 15:50 , chevalma@iro.umontreal.ca a écrit :
Are we meeting tomorrow, in addition to Thursdays?
If you want to discuss the issues you raised, I would cancel the meeting.
I would like to be able to call any IRFunction in a given compiled file (so I can lookup a given global function by name), and, if possible, be able to pass it one or two integer arguments. This would make it possible to get rid of the global return, which is not valid JavaScript, and currently prevents our benchmarks from running in V8 as-is. It would mean we could run the same benchmarks, in essentially the same way, on both Tachyon and V8.
If you don't need the return value and do not need to parametrize the argument to fib, having the benchmark defined this way should run as-is without any changes in the backend:
function fib(x) { if (x < 2) return x; else return fib(x-1) + fib(x-2);
} fib(20);
The driver would simply need to do the following, where the file name was given through a commandline argument:
var f = compileFileToJSFunc(filename); // Setup timers f(); // Stop timers f.free() // Retrieve timer results
That would give you the running time but would not ensure correctness of the result. I would advocate doing things this way for Friday since I won't have any development time to help you on this.
I am not completely clear on how your driver should work nor what you want to parametrize so I would be available between 12h30 and 14h30 to talk about it assuming we do not have a meeting.
Erick
- Maxime
Tachyon-list mailing list Tachyon-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/tachyon-list