views:

8

answers:

0

Existing eclipse expects a C/C++ source file to be present and then it compiles/builds the project on hitting the build button. Case in hand: I generate a C code from an AST using my own created plugin. Then this code has to be executed using CDT (i.e. I would directly like to call the interface (API) that CDT uses to call the build the source file and also create an executable.)

What is the interface (API) that accepts the source file and builds it and then finally creates the executable for the same. Also please let me know the required parameters that need to be passed to this API. I need to call this API from a main method class in eclipse.

Also please let me know how to go about this process.

Note: I am using Eclipse-CDT 64 bit on linux machine