Click here to Skip to main content
15,894,343 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Mainframes? Pin
rnbergren24-Jan-19 7:56
rnbergren24-Jan-19 7:56 
AnswerRe: Mainframes? Pin
Kornfeld Eliyahu Peter24-Jan-19 9:40
professionalKornfeld Eliyahu Peter24-Jan-19 9:40 
GeneralRe: Mainframes? Pin
#realJSOP24-Jan-19 9:41
mve#realJSOP24-Jan-19 9:41 
JokeRe: Mainframes? Pin
Kornfeld Eliyahu Peter24-Jan-19 9:46
professionalKornfeld Eliyahu Peter24-Jan-19 9:46 
GeneralRe: Mainframes? Pin
  Forogar  24-Jan-19 10:06
professional  Forogar  24-Jan-19 10:06 
AnswerRe: Mainframes? Pin
WaferFun24-Jan-19 14:52
WaferFun24-Jan-19 14:52 
AnswerRe: Mainframes? Pin
Super Lloyd24-Jan-19 15:53
Super Lloyd24-Jan-19 15:53 
AnswerRe: Mainframes? Pin
kalberts25-Jan-19 0:28
kalberts25-Jan-19 0:28 
Doesn't the GCC suite have a COBOL compiler? If you parse the code into a DAG structure (before being processed by the compiler back end), you could reassemble the DAG into another language, such as C++.

I guess you would want to turn off all sorts of optimization, or you could intercept the compiler after parsing, but before any global optimization. (If you let an optimizer move code around, merge identical subexpressions into one etc. etc., the program logic may be far more difficult to grasp.) Maybe you could even preserve more of the symbolic information by intercepting the process as early as possible, without having to analyze debug information.

Disclaimer: I have never been into the core of the GCC compilers, so I have never tried to do anything like this myself. If you are a compiler guy, and you are talking about a code base of a million lines, you may consider it. If you don't know much about compilers, forget it.

I did one project machine translating one language into another, and concluded that the cleanup work of the generated code cost us far more than manual hand translation would have amounted to. But the translator we used worked at the source code level, breaking textual statements down into textual fragments and reassembling it from different textual fragments. If you do a complete syntactical and semantic parsing, you probably have a much higher chance of getting a workable result. But it takes a compiler guy, and I would think that the initial effort won't pay back for anything less than a million line of code.
GeneralThought of the Day Pin
OriginalGriff24-Jan-19 4:59
mveOriginalGriff24-Jan-19 4:59 
QuestionRe: Thought of the Day Pin
megaadam24-Jan-19 5:12
professionalmegaadam24-Jan-19 5:12 
GeneralRe: Thought of the Day Pin
lopatir24-Jan-19 5:39
lopatir24-Jan-19 5:39 
GeneralRe: Thought of the Day Pin
W Balboos, GHB24-Jan-19 8:41
W Balboos, GHB24-Jan-19 8:41 
GeneralChrome updates Pin
F-ES Sitecore24-Jan-19 2:37
professionalF-ES Sitecore24-Jan-19 2:37 
GeneralRe: Chrome updates Pin
Daniel Pfeffer24-Jan-19 2:47
professionalDaniel Pfeffer24-Jan-19 2:47 
GeneralRe: Chrome updates Pin
#realJSOP24-Jan-19 2:56
mve#realJSOP24-Jan-19 2:56 
GeneralRe: Chrome updates Pin
rnbergren24-Jan-19 7:51
rnbergren24-Jan-19 7:51 
GeneralRe: Chrome updates Pin
User 842024-Jan-19 3:15
User 842024-Jan-19 3:15 
GeneralRe: Chrome updates Pin
Richard Deeming24-Jan-19 3:18
mveRichard Deeming24-Jan-19 3:18 
GeneralRe: Chrome updates Pin
F-ES Sitecore24-Jan-19 3:43
professionalF-ES Sitecore24-Jan-19 3:43 
QuestionRe: Chrome updates Pin
ZurdoDev24-Jan-19 4:10
professionalZurdoDev24-Jan-19 4:10 
AnswerRe: Chrome updates Pin
F-ES Sitecore24-Jan-19 4:15
professionalF-ES Sitecore24-Jan-19 4:15 
GeneralRe: Chrome updates Pin
ZurdoDev24-Jan-19 4:17
professionalZurdoDev24-Jan-19 4:17 
AnswerRe: Chrome updates Pin
Rick York24-Jan-19 4:50
mveRick York24-Jan-19 4:50 
GeneralRe: Chrome updates Pin
ZurdoDev24-Jan-19 4:56
professionalZurdoDev24-Jan-19 4:56 
AnswerRe: Chrome updates Pin
Basildane24-Jan-19 4:55
Basildane24-Jan-19 4:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.