[M3devel] "crazy cross"

Jay jayk123 at hotmail.com
Sat Jan 5 02:22:13 CET 2008


You've all heard of "Canadian cross"?
It is cross-building a cross-compiler.I'm sitting in Windows. I'm going to build a compiler that is going to run on Linux that is going to target Solaris.For one example.
You've all seen that Apple has switches like so:
gcc -arch i386 ppc ppc64 x86_64 hello.cand poof out comes a binary that runs natively on four architectures
I don't like the "inconvenience" of non cross systems and having to have all the machines/OSes just to build the binaries.I realize that you hit the wall if you actually want to test the results. So cross building only gets so much.Of course I also don't want to multiply out build times for tools...
Ok, well what is the possibility of:
cm3 -target NT386cm3 -target NT386 -target PPC_DARWIN
? In my crazy imagination, you have:
 \cm3\bin\cm3.cmd      %~dp0..\libexec\%processor_architecture%\%TARGET%\cm3.exe %* 
 \cm3\bin\cm3      #!/bin/sh      dirname(dirname($0))/libexec/`uname whatever`/$TARGET/cm3 $@
Thus it becomes POSSIBLE to have an n x m matrix, host x target, and be able to build"anything" from one environment.
Actually the targets could all be merged into one .exe or be .dll/.sos.Except the code isn't setup for that.
Interesting?
I guess the hard part is the C code and linking?The Modula-3 stuff is already setup to do most of this?  (partly by virtue of all that header rewriting that I labeled sleazy)
 - Jay
_________________________________________________________________
Share life as it happens with the new Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080105/3bf004c9/attachment-0002.html>


More information about the M3devel mailing list