dinaharchery

Merging C++ and Brook+

Discussion created by dinaharchery on Aug 19, 2009
Latest reply on Aug 19, 2009 by gaurav.garg
Calling Brook generated functions from C++

I hope this is the correct forum, so if not please forgive.

I am just trying to get simple interaction between C++ code and Brook+ generated functions.  Say I have a C++ file with the "main()" function and within that function it will call a function that was generated by the Brook+ compiler. How can I do this? I am interested in embedding kernel operations INSIDE of standard C++ code - if possible.

e.g.,

Brook-generated file: "brook.cpp" contains function "void test()" that will printf "hello world". Standard C++ file main() will call test

I know this is probably a very simple problem but I am new.  Thanks.

Outcomes