An approach that uses a combinatorial approach by adopting natural
language processing with the application of Finite State Morphology (FSM)
to transform source code into an efficient assembly code. In one example
embodiment, this is accomplished by modifying a source code, including
multiple instructions, using Lexical Functional Grammar Analysis (LFGA)
operation on each instruction as a function of specific Digital Signal
Processor architecture. The structure of the modified source code is then
changed through multiple iterations using Finite State Morpohology (FSM)
and Dynamic Instruction Replacement (DIR) to generate the efficient
source code.