This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [open-cobol-list] GCC front end for COBOL
- From: Keisuke Nishida <knishida at netlab dot jp>
- To: Bernard Giroud <bgiroud at free dot fr>
- Cc: gcc at gcc dot gnu dot org, open-cobol-list at lists dot sourceforge dot net,cobolforgcc-devel at lists dot sourceforge dot net,TCU <tiny-cobol-users at lists dot sourceforge dot net>
- Date: Mon, 05 May 2003 04:12:21 +0900
- Subject: Re: [open-cobol-list] GCC front end for COBOL
- References: <m3sms29xgn.wl@afina.netlab.jp> <3EB27A2C.BCFF6EE2@free.fr>
Hi Bernard,
At Fri, 02 May 2003 16:01:16 +0200,
Bernard Giroud wrote:
>
> I would just suggest changing the external name
> gcb (and the project name) to something like
> gcob: quicker to pronounce, and better imaging
> against GNU (like gcc, g77, ...).
Yes, that might be better.
> I wonder how much easy it would be to continue
> to work with OpenCOBOL modified to have
> a structure more compatible to GCC, so that minimal
> modifications could be applied back to gcc-cobol ?
It is not hard, but developing two compilers in parallel
is troublesome. I am going to switch to gcc-cobol sooner
or later.
> A few technical hints when making the compiler:
>
> - on a RH8.0, I had to rename all malloc in cob-tree.c
> into xmalloc, following a error message about
> "poisonous malloc".
> - contrary to your instructions, you need OpenCOBOL 0.12.
> If 0.11, cob_get_environment and cob_put_environment
> are missing. If 0.20, then cob_decimal_get, cob_decimal_get_r
> and cob_error_code are missing.
I will fix them. Thanks.
> Also where should cobc1 be installed to make it work ?
Anywhere on the PATH.
Keisuke