Re: Tips for porting to new platform

David MacQueen <[email protected]> Fri, 29 Aug 2008 12:20:00 -0700
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
Hi,

I assume the platform you are porting to is uses an x86 processor?
Then porting the runtime should be all that is required.  John Reppy
is the runtime expert (he's in Cambridge, England for the Fall), and
he should be able to tell you what the critical libraries are -- you  
probably
won't need all the functionality of the runtime libraries, and may need
to add a OS-interface library for your platform.

Regards,

Dave MacQueen


On Aug 29, 2008, at 11:37 AM, David C Thulson wrote:

> Hello,
> I am working on an academic project
> (http://www.rites.uic.edu/~solworth/ethos.html) where we are planning
> to use ML on a non-standard platform.  I am looking into what will be
> required to port SMLNJ to this platform.  At this point, we are
> planning to run the compiler on a linux system and only run the
> resulting executable itself on the new platform.  I am also not
> concerned with supporting any additional libraries
> (POSIX-compatibility, etc) at this time although some of that may come
> eventually.
>
> As a result, I believe that I can just focus on porting ML's runtime
> library that is written in C.  Is that true?  If not, where else are
> changes necessary for porting to a new platform?  If I am correct that
> only the runtime lib needs changes, do you have tips about where to
> look before I dive into the code?  Our target platform does not
> support the C std library.  As a result, we'll need to change places
> where the runtime uses the C stdlib.  I would appreciate any advice
> you could give me on this task.  Thanks in advance, let me know if I
> was unclear (or just wrong) about anything.  Thanks again.
>
> David Thulson
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Smlnj-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/