An embodiment of the invention includes, parsing a source code, performing a
plurality
of optimizations on the parsed code, generating a plurality of configuration instruction
sets based on the optimized source code and automatically selecting one of the
plurality of generated configuration instruction sets according to a user defined
criteria, the selected configuration instruction set being used to configure hardware.