[M3devel] cross "compiling"

Jay jayk123 at hotmail.com
Tue Feb 26 19:19:53 CET 2008


e.g. I can get this far in scripts/python/do-cm3-all.py:
 
--- building in SOLgnu ---  <== SOLgnu 
/cygdrive/C/dev2/cm3.2/m3-tools/m3bundle/SOLgnu/m3bundle -name B -F/cygdrive/c/DOCUME~1/Jay/LOCALS~1/Temp/qkunable to open file for reading: ../SOLgnu/B.i3: errno=2unable to open file for reading: ../SOLgnu/B.m3: errno=2
 
and yes I understand the problem and I think you can trivially override it by using the "correct" host m3bundle instead of the "just built" one.
 
(might have had to make a change to skip tapi)
 
(and I should be able to run X86_SOLARIS in a virtual machine...)
 
 - Jay


From: jayk123 at hotmail.comTo: m3devel at elegosoft.comDate: Tue, 26 Feb 2008 17:47:31 +0000Subject: [M3devel] cross "compiling"


This may be obvious to everyone and so inadequate as to be useless, but I just had a minor idea and proved it correct. Even if you don't have a backend, C compiler, linker, etc, you can still compile the Modula-3 code for any target from any target. If you just put return 0 in the config file for backend, compile_c, link, make_lib, assembly, you can at least run the front/middle ends. For example I just compiled m3core and libm3 for Solaris. That would have caught my DatePosix.m3 error, though that sort of change was maybe one that just can't be commited without an available machine. (I'm still not sure how to do these things. You can only change what you have, or send diffs around and wait for the all clear, or you can make a best effort and hope..) Obviously it only affords a certain minimal amount of checking.But it is perhaps something. IN FACT...maybe it is enough testing that the tinderboxes should do it, for all platforms deemed "supported"?I don't think you can ship, but you can buildlocal. (I built libm3, depends on m3core). I'll push this a bit further. IF this is deemed useful, maybe a compiler switch?  - Jay

Need to know the score, the latest news, or you need your Hotmail®-get your "fix". Check it out. 
_________________________________________________________________
Helping your favorite cause is as easy as instant messaging. You IM, we give.
http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080226/779706c5/attachment-0002.html>


More information about the M3devel mailing list