This paper presents a method to automatically generate a Control Data Flow Graph (CDFG) from C/C++ source code. This CDFG is used to automate the programming of an FPFA, a flexible, energy efficient reconfigurable device, introduced in the Chameleon project.