Dynamic Programming Code Generation In Compiler Design