On Mon, Mar 14, 2022 at 1:24 PM Liam Proven <lpro...@gmail.com> wrote: > > The main problem is that you will need the whole GCC tool chain for this to > > work... > > I did not know that GNU COBOL compiled to C when I answered, but yes, > I agree, ultimately this is the problem.
An approach like this is increasingly common. Micro Focus currently offers a cross-platform version of Open COBOL. It works by transpiling COBOL code to Java. Java is "write once, run anywhere", and compiles to a tokenized binary actually executed by the Java runtime on the target system. The tokenized binary is the same regardless of the system it was written and compiled on, and can be run on any system with a current JVM. Micro Focus also offers a version that transpiles to .NET. Same difference - the compiled code is executed by the .NET runtime. MS has made .NET open source. I ran into a chap at a party developing on a Raspberry PI using C# as the language. A version of the .NET runtime is available for the ARM processor used by the Pi., and C# (and the functional language F#) are built into .NET. If you have .NET you can code in them. (Just for the record, I don't think it's *possible* to implement .NET under DOS. It assumes a multitasking OS with 32 bit or better architecture.) ______ Dennis _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user