modula3 / cm3

Critical Mass Modula-3
http://modula3.github.io/cm3/
Other
139 stars 25 forks source link

Support some obscure compilers #1065

Closed ghost closed 2 years ago

ghost commented 2 years ago

Embarcadero Compiler (Borland Compiler) and Open Watcom Compiler are both supported by cmake: https://github.com/Kitware/CMake/tree/master/Modules/Compiler

VictorMiasnikov commented 2 years ago

I have try Watcom for cm3 for DOS. It is too old -( for modern cm3 source code

ghost commented 2 years ago

I have try Watcom for cm3 for DOS. It is too old -( for modern cm3 source code

There is Open Watcom V2 on github, just search for it. It's for Windows. Embarcadero Compiler is still updated, too.

VictorMiasnikov commented 2 years ago

Don't worry: I hope this is "temporary trouble".

( . . .) Why don't you have to support Windows if Windows now could run Linux binaries?

In "other case" ( i.e. "it is permanent problem") we can use XDS Oberon-2/Modula-2 and ( or) ADW Modula-2

I don't see the point. ADW is closed source, Windows-only and there is absolutely no support from the developer. XDS generates C. So why don't improve the existing C backend instead? Or developing new backends, e.g: LLVM IR?

p/s: BTW, is there any existing C++ backend? The compiled source file extension is .cpp but they are plain C.

( . . .)

p/s: BTW, is there any existing C++ backend? The compiled source file extension is .cpp but they are plain C.

a) There is not existing "pure C++ backend by source-to-source method" b) "The compiled source file extension is .cpp" but they are not plain C. May be in files with "extension is .c" we have "pure C language". It compatible with MS VS in any key.