[M3devel] config support for C backend (USE_C_BACKEND = TRUE)

Jay K jay.krell at cornell.edu
Sun Sep 16 10:32:33 CEST 2012


cm3cfg.common:
if not defined("USE_C_BACKEND")  USE_C_BACKEND = FALSEend

if USE_C_BACKEND
M3_BACKEND_MODE = "ExternalObject"
proc m3_backend(source, object, optimize, debug) is    ret_code = try_exec("@m3cgcat", "-in-binary:" & source, "-out-c:" & source & ".c")    if not equal(ret_code, 0)        return ret_code    end    return compile_c(source & ".c", object, [ ], FALSE, TRUE)end
end

so, say: USE_C_BACKEND = TRUE in config file to use C backend.It certainly doesn't work yet.I switched PPC_DARWIN to it.But note, again, it doesn't work. It does a lot, seemingly correctly, but not yet enough.

A C mode in the "builder" would still be more efficient.

 - Jay 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20120916/5f70bb62/attachment-0001.html>


More information about the M3devel mailing list