-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java変換プロジェクト #43
Comments
I've thought about this multiple times. To achieve this with a minimal impact and maximum stability (rewriting libcob [and possibly even cobc] would be a very long big task) I'd suggest integrating a JNI "interface" consisting of:
This will allow anyone to call COBOL modules from JAVA, using primitive types and their Wrapper Objects. A relative small change to cobc will allow to create a "java wrapper" source file that provides access to a COBOL program and methods for each external entry point. To do so it will use the java classes from step 1. When this is finished it would theoretically be possible to change the code generation of cobc to directly create java source files (and also optionally to use cobc to compile them) but this would only be reasonable if the runtime is converted to Java, too. Despite the work it will definitely slow down the runtime by numbers. In any case I invite you to work on this within the GnuCOBOL project using current "trunk" as start (on a new branch). What do you think about this? |
Thanks for your feedback. I forgot to say, in Japan, Everyone want Java code strongly! In my think, we edit only typeck and codegen in compiler. we are considering follows for Java and COBOL cooperation.
It is attractive proposal for me. |
Hello, I made it. |
That's an interesting new repo. It looks like it uses a different approach than the old one outlined above. Note: I assume the README is not up to date, it specifies a not existing directory "cobj" and not include the "libcob" directory. |
My first thought was to include Java functionality as a feature of opensource COBOL. About approach: P.S. |
opensource COBOL開発者各位
お疲れ様です。
現在、我々のチームでopenosurce COBOLでのCOBOLのコンバート先として、C言語だけでなく、Javaコードを出力できるようにすることを考えています。
目的として、以下2点があります。
開発内容について、opensourcecobol内に別途リポジトリを作成して共有したいと考えています。
ご意見有りましたら、コメントお願いいたします。
--
We would like to update opensource COBOL to generate Java code not only C code
because,
I'm thinking of create new repositoy and publish development.
what's your opinion.
The text was updated successfully, but these errors were encountered: