Trenki
Member
Hi all!
I am currently working on a framework called "cmd940" which will make using the second CPU a childs play!
You basically define and implement the functions on the 940 and a script will generate a library which you can use in the program for the 920.
From the 920 you then can just call those defined functions as if they would reside on the 920 but they will be executed on the 940.
The following is an example program showing the usage of the library:
CODE
#include "../cmd940/include/cmd940.h"
#include <iostream>
using namespace std;
int main()
{
// initialize framework
if (!cmd940_init("cmd940/bin/code940.bin")) {
cout << "error initializing cmd940" << endl;
return 1;
}
// use framework
int n = 25;
cout << "fibonacci(" << n << ") = " << cmd940::fibonacci(n) << endl;
// deinitialize framework
cmd940_deinit();
}
Isn't that easy?
I'm looking for some beta testers as the framework might still contain unknown bug.
Once it's stable i will release it on my homepage.
I have now published my framework on my homepage here.
I am currently working on a framework called "cmd940" which will make using the second CPU a childs play!
You basically define and implement the functions on the 940 and a script will generate a library which you can use in the program for the 920.
From the 920 you then can just call those defined functions as if they would reside on the 920 but they will be executed on the 940.
The following is an example program showing the usage of the library:
CODE
#include "../cmd940/include/cmd940.h"
#include <iostream>
using namespace std;
int main()
{
// initialize framework
if (!cmd940_init("cmd940/bin/code940.bin")) {
cout << "error initializing cmd940" << endl;
return 1;
}
// use framework
int n = 25;
cout << "fibonacci(" << n << ") = " << cmd940::fibonacci(n) << endl;
// deinitialize framework
cmd940_deinit();
}
Isn't that easy?
I'm looking for some beta testers as the framework might still contain unknown bug.
Once it's stable i will release it on my homepage.
I have now published my framework on my homepage here.