Legacy Modernization with LLMs: Cost and Results
Translating a 550,000-line RPG ERP system to Java with an LLM cost about $1,100 at API prices. All code compiled, yet every translation examined contained errors.
Translating a 550,000-line RPG ERP system to Java with an LLM cost about $1,100 at API prices. All code compiled, yet every translation examined contained errors.
An LLM translated 600,000 lines of RPG into over a million lines of Java across 49 sessions. Measurements show style drift, duplicated helpers and stale generated files.
The same prompt, run three times, turned one RPG application into three different Java designs, from 14,500 to 26,300 lines, with different overflow behavior.