Page 1 of 1

Can we write our own compiler?

Posted: Fri Dec 09, 2022 6:21 pm
by Harsh Deol
Hi,

This is just a thought at this point in time but with some direction maybe I can do it.

Can we write our own compiler? I mean if I want to write a COBOL compiler, how can I get started? Could anyone guide please?

Re: Can we write our own compiler?

Posted: Fri Dec 09, 2022 10:17 pm
by Robert Sample
This would be a MAJOR undertaking. You need to understand the COBOL syntax, and you need to understand the various assembler operations, and you need to understand COBOL data formats, etc. and etc. and etc.

I could probably do it in a year or so of dedicated effort, but then I've got more than 40 years of mainframe experience (a lot of it in COBOL). If you really want to start doing this, I recommend a Google search for writing a compiler which will give you plenty of reading material and where to get started.