C++ genetic programming: Invoking a linker/compiler, executing the compiled program and piping input / output

This is a generic question, and although I'm pretty sure some of it's parts have been answered I want opinions rather than a broad discussion. I intend to do a master thesis on evolutionary computation and genetic programming, and I would like opinions from experts on Linux/C++ whether it would be possible to create source code files from the genetic program, invoke gcc to compile them, if they fail to compile to capture those reasons why they failed, if they do compile to execute the compiled program (as a new process) and then to be able to send input to that program and capture output and any raised exceptions (or crashes). I understand that the topic is too broad, but I would like to know if anyone thinks that this is undoable, silly to try, or even if there could be a better way on doing this.

7
задан Ælex 7 April 2011 в 18:11
поделиться