Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol Misc > Re: New Cobol c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 13 Topic 91 of 183
Post > Topic >>

Re: New Cobol compiler written in Cobol

by "Chuck Stevens" <charles.stevens@[EMAIL PROTECTED] > Jan 28, 2005 at 12:01 PM

"Paul Robinson" <paul@[EMAIL PROTECTED]
> wrote in message
news:BMuKd.9$iD.7@[EMAIL PROTECTED]
> JerryMouse wrote:
> > Paul Robinson wrote:
> >
> >>I am considering the development of a Cobol compiler itself written in
> >>Cobol.  Please don't flame me over the perceived stupidity of such a
> >>choice, I think it is a better idea than a language that cannot
> >>compile itself.  I do believe obviously that there is enough power in
> >>the language to implement a COBOL compiler using the COBOL language.
After
> >>all, a compiler is simply a program to translate text from a
> >>source into a target.  We're not talking rocket science or brain
surgery
> >>here.
> >>
> >>I believe there is money to be made with a good inexpensive Cobol
> >>compiler which is available for several different targets, which would
> >>allow applications to be used unchanged on different environments,
> >>such as IBM Mainframe, DOS, Windows, Linux and others.  Having done
> >>maintenance on three other language compilers and written one from
> >>scratch for Fortran in three months, I decided to focus on Cobol as I
> >>think it is an underserved market and I think there is both room for
> >>another product and sufficient market need to merit the time and
> >>effort in developing one.
> >>
> >>I am wondering if there was interest in such a thing.  What I am
> >>thinking about is something that did not require run-time licensing
> >>fees, would not be hugely expensive as most Cobol compilers seem to
> >>be, and by writing the compiler in Cobol itself, the people who use
> >>the compiler, if they wanted an additional feature the compiler did
> >>not supply, could write the code for it themselves if they chose to
> >>do so.
> >
> >
> > The Realia compiler is written in COBOL. I saw the source listing once
-
a
> > binder as tall as a basketball player (well, maybe a SHORT basketball
> > player). As I recall it was 800,000 lines of code.
> >
>
> Maybe I'm missing something - or deluding myself - but I think that
> seems extremely high.  800,000 lines of code seems to indicate an
> application that is far too complex or possibly much of the code is
> generated by other programs from specifications instead of written to
> handle compilation of one or more Cobol source program files. Or maybe
> I'm just a little bit brighter than I thought I was.

I don't think that's all that high.  The monolithic COBOL74 compiler for
Unisys MCP systems is in an ALGOL dialect (NEWP), and it's about 133k
lines
(sup****ting lots of Unisys extensions); the predecessor COBOL(68) compiler
in ALGOL was just under 60K.

Given COBOL's infamous wordiness, and the standards features that
'85-and-later COBOL has that '74 did not, 800K for a modern COBOL compiler
written in COBOL doesn't seem all that excessive.

The COBOL85 compiler for the Unisys MCP environment is modular and part of
a
system that accommodates both multiple code generators and multiple
languages, so line counts for it (in Pascal83) aren't really comparable.

    -Chuck Stevens
 




 13 Posts in Topic:
New Cobol compiler written in Cobol
Paul Robinson <paul@[E  2005-01-28 14:54:40 
Re: New Cobol compiler written in Cobol
Donald Tees <donald_te  2005-01-28 10:16:35 
Re: New Cobol compiler written in Cobol
"JerryMouse" &l  2005-01-28 11:11:05 
Re: New Cobol compiler written in Cobol
Paul Robinson <paul@[E  2005-01-28 17:38:41 
Re: New Cobol compiler written in Cobol
"Chuck Stevens"  2005-01-28 12:01:17 
Re: New Cobol compiler written in Cobol
"William M. Klein&qu  2005-01-28 20:53:33 
Re: New Cobol compiler written in Cobol
"William M. Klein&qu  2005-01-28 21:13:30 
Re: New Cobol compiler written in Cobol
Joe Zitzelberger <joe_  2005-01-28 18:04:31 
Re: New Cobol compiler written in Cobol
"steve.t" <s  2005-01-29 21:44:50 
Re: New Cobol compiler written in Cobol
"JerryMouse" &l  2005-02-01 19:39:37 
Re: New Cobol compiler written in Cobol
David Flick <df@[EMAIL  2005-01-31 12:46:04 
Re: New Cobol compiler written in Cobol
"Richard" <r  2005-01-31 11:01:03 
Re: New Cobol compiler written in Cobol
"Richard" <r  2005-02-01 17:50:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 9:02:40 CST 2008.