LADSoft / OrangeC

OrangeC Compiler And Tool Chain
http://ladsoft.tripod.com/orange_c_compiler.html
Other
291 stars 39 forks source link

Enhancement: A tool to convert normal C to the OCCIL dialect #967

Open ghost opened 11 months ago

GitMensch commented 11 months ago

What do you mean by that? OCCIL translates C to IL ?!?

ghost commented 11 months ago

What do you mean by that? OCCIL translates C to IL ?!?

OCCIL defines it own dialect, not the same as standard C.

LADSoft commented 11 months ago

while occil does define its own dialect, it should support most standard C programs up through C11, if you don't expect to have things like the threads library and complex numbers. The alterations to the dialect beyond that mostly define new types for strings and objects, and a few C++-like features to support namespace and class traversal. This is all in support of using .net assemblies.

But it should be stressed you don't have to use .net assemblies. occil will access native dlls, and uses msvcrt.dll (by default) to access the C runtime library. You can also have it use lscrtl.dll to get more recent additions to the runtime that are available in Orange C.