|
Prev: Decimal versus binary arithmetic was Re: J4 - presentation/discussionon "Future of the COBOL Standard"
Next: Thoughts on teaching OO concepts to COBOL programmers
From: Felipe José Angriman on 10 Apr 2008 11:30 Does anyone know where to get a reference of the RM-COBOL 85 Opcodes? I'm looking for something in the form of Opcode name / encoding / semantic behavior I intend to build an interpreter. Would you mind providing me link? I apologize in advance for any misspelling errors. Thanks -- Felipe José Angriman felipeangriman(a)gmail.com
From: Stephen Boyd on 10 Apr 2008 11:40 That is all proprietary. I doubt that you will find these documented anywhere. It you want to build an RM/Cobol interpreter you will probably have to start by parsing the source code. Felipe Jos� Angriman wrote: > Does anyone know where to get a reference of the RM-COBOL 85 Opcodes? > > I'm looking for something in the form of > > Opcode name / encoding / semantic behavior > > I intend to build an interpreter. > Would you mind providing me link? > I apologize in advance for any misspelling errors. > > Thanks > -- > Felipe Jos� Angriman > felipeangriman(a)gmail.com
From: Michael Mattias on 10 Apr 2008 11:45 "Felipe Jos� Angriman" <felipeangriman(a)gmail.com> wrote in message news:5bf9486d-8522-4c91-b8a7-fed05b6aa560(a)l42g2000hsc.googlegroups.com... >Does anyone know where to get a reference of the RM-COBOL 85 Opcodes? >I'm looking for something in the form of > Opcode name / encoding / semantic behavior Well, if you are writing for Intel chips, I know Intel makes that info available to the public. Best guess is to start at Intel's web site. And I'm sure other chip people make similar information available.. after all, if nobody knows the opcodes and behavior of the chips, it's probably going to be really, really tough to sell any of them. But as was stated, "how" the RM-COBOL compiler USES those various opcodes to implement specific COBOL verbs would be highly proprieatary... after all, that's exactly what any compiler does , its very "reason to exist" in the first place. -- Michael C. Mattias Tal Systems Inc. Racine WI mmattias(a)talsystems.com
From: Stephen Boyd on 10 Apr 2008 12:10 > > Well, if you are writing for Intel chips, I know Intel makes that info > available to the public. Best guess is to start at Intel's web site. And I'm > sure other chip people make similar information available.. after all, if > nobody knows the opcodes and behavior of the chips, it's probably going to > be really, really tough to sell any of them. > RM/Cobol doesn't compile to machine code. It compiles to an intermediate form that is interpreted by a run time, something like Java. Knowing the opcodes for the chip set wouldn't help much in this case.
From: Felipe José Angriman on 11 Apr 2008 12:27
I would like to rephrase myself. it seems i was not clear. I know that when you compile an RM-Cobol 85 source, you a get a file (tipically in .COB Extension). When you wish to execute the program (now in an intermediate representation), you use the RunCobol Program to interpret the .COB file I'm interested in knowing opcodes of the intermediate represetation, not the opcodes for a particular machine, like the x86 I again apologize |