caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] VxWorks?  mailing list?
@ 2003-03-28  1:46 Wheeler Ruml
  2003-03-30 10:26 ` Xavier Leroy
  0 siblings, 1 reply; 5+ messages in thread
From: Wheeler Ruml @ 2003-03-28  1:46 UTC (permalink / raw)
  To: caml-list

Has anyone heard of running OCaml programs under the VxWorks real-time
OS from WindRiver?  People who build actual products are asking me if
my OCaml code can run under VxWorks and I'd appreciate hearing about
any experiences others have had with either compiling the byte-code
interpreter or getting native code to work for any of the VxWorks
targets.  Wouldn't it be nice if we could point to OCaml code in
everyday office products?

Also, I've been having trouble with the mailing list search interface
- searching for "mingw" gives 0 hits although I know there are
messages with that word in them (for instance:
http://caml.inria.fr/archives/200208/msg00038.html).  I assume there
is a bug on the server side?


Thanks very much,

Wheeler
-- 
Wheeler Ruml, Palo Alto Research Center, Rm 1522, 650-812-4329 voice
ruml@parc.com, http://www.parc.com/ruml           650-812-4334 fax

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] VxWorks?  mailing list?
  2003-03-28  1:46 [Caml-list] VxWorks? mailing list? Wheeler Ruml
@ 2003-03-30 10:26 ` Xavier Leroy
  2003-03-30 18:13   ` David Brown
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Xavier Leroy @ 2003-03-30 10:26 UTC (permalink / raw)
  To: Wheeler Ruml; +Cc: caml-list

> Has anyone heard of running OCaml programs under the VxWorks real-time
> OS from WindRiver?  People who build actual products are asking me if
> my OCaml code can run under VxWorks and I'd appreciate hearing about
> any experiences others have had with either compiling the byte-code
> interpreter or getting native code to work for any of the VxWorks
> targets.  Wouldn't it be nice if we could point to OCaml code in
> everyday office products?

I have no experience with VxWorks, but from their Web site it appears
to be POSIX-compliant.  If so, chances are very high that the bytecode
interpreter will compile and work right out of the box.  For the
native-code compiler, the porting effort can range from the trivial
(e.g. one of the supported configurations just happens to work) to the
fairly hard (e.g. a new code generator has to be written).  It's not
possible to say without more details on the target platform and
environment.

- Xavier Leroy

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] VxWorks?  mailing list?
  2003-03-30 10:26 ` Xavier Leroy
@ 2003-03-30 18:13   ` David Brown
  2003-03-30 20:27   ` james woodyatt
  2003-04-02 18:15   ` [Caml-list] " Wheeler Ruml
  2 siblings, 0 replies; 5+ messages in thread
From: David Brown @ 2003-03-30 18:13 UTC (permalink / raw)
  To: Xavier Leroy; +Cc: Wheeler Ruml, caml-list

On Sun, Mar 30, 2003 at 12:26:43PM +0200, Xavier Leroy wrote:

> I have no experience with VxWorks, but from their Web site it appears
> to be POSIX-compliant.  If so, chances are very high that the bytecode
> interpreter will compile and work right out of the box.  For the
> native-code compiler, the porting effort can range from the trivial
> (e.g. one of the supported configurations just happens to work) to the
> fairly hard (e.g. a new code generator has to be written).  It's not
> possible to say without more details on the target platform and
> environment.

It might be a little harder than just compiling to get the byte code
interpreter working.  It depends on the byte-code interpreters demand
for memory management.  Most VxWorks systems I use just have a single
address space.  VxWorks can be thought of as a single task on a Posix
system with multiple threads.

It also don't have a normal shell and that kind of stuff, so the code
would have to be byte-compiled on one machine and moved over.  It would
probably be easiest to use -output-obj to have the linker include the
object.

Cross compilation didn't look that easy last time I thought about trying
to do it.

Dave

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] VxWorks?  mailing list?
  2003-03-30 10:26 ` Xavier Leroy
  2003-03-30 18:13   ` David Brown
@ 2003-03-30 20:27   ` james woodyatt
  2003-04-02 18:15   ` [Caml-list] " Wheeler Ruml
  2 siblings, 0 replies; 5+ messages in thread
From: james woodyatt @ 2003-03-30 20:27 UTC (permalink / raw)
  To: The Trade

On Sunday, Mar 30, 2003, at 02:26 US/Pacific, Xavier Leroy wrote:
> [Someone else asked]
>> Has anyone heard of running OCaml programs under the VxWorks real-time
>> OS from WindRiver?  People who build actual products are asking me if
>> my OCaml code can run under VxWorks and I'd appreciate hearing about
>> any experiences others have had with either compiling the byte-code
>> interpreter or getting native code to work for any of the VxWorks
>> targets.  Wouldn't it be nice if we could point to OCaml code in
>> everyday office products?
>
> I have no experience with VxWorks, but from their Web site it appears
> to be POSIX-compliant.  If so, chances are very high that the bytecode
> interpreter will compile and work right out of the box.  For the
> native-code compiler, the porting effort can range from the trivial
> (e.g. one of the supported configurations just happens to work) to the
> fairly hard (e.g. a new code generator has to be written).  It's not
> possible to say without more details on the target platform and
> environment.

I have experience with VxWorks.  Its "POSIX compliance" is narrow.  
Code is generally cross-compiled and deployment is much more like 
loading a module into a dynamic kernel rather than launching a POSIX 
process.

I would expect that some non-trivial labor would be involved in porting 
the build process for the byte-code interpreter to make it live with 
the VxWorks cross-development tools in $WIND_BASE/host/$arch/bin.  Then 
there would likely be a collection of issues revolving around symbol 
conflicts, i.e. things defined in the byte-code interpreter that are 
provided by VxWorks-- or by whatever other Wind River platform packages 
you're using.  There would finally be issues associated with making the 
VxWorks IPC mechanisms available to OCaml programs.

The native-code compiler could also be a major additional headache if 
the CPU of your target is something weird, like say an ARM processor.

I like OCaml, but I suspect that Lua might be a better choice for 
bringing functional programming to the embedded application world.  It 
would probably be a lot easier to get Lua up and running under VxWorks.


-- 
j h woodyatt <jhw@wetware.com>

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Caml-list] Re: VxWorks? mailing list?
  2003-03-30 10:26 ` Xavier Leroy
  2003-03-30 18:13   ` David Brown
  2003-03-30 20:27   ` james woodyatt
@ 2003-04-02 18:15   ` Wheeler Ruml
  2 siblings, 0 replies; 5+ messages in thread
From: Wheeler Ruml @ 2003-04-02 18:15 UTC (permalink / raw)
  To: caml-list

> > Has anyone heard of running OCaml programs under the VxWorks real-time
> > OS from WindRiver?
>
> Its "POSIX compliance" is narrow.  Code is generally cross-compiled
> and deployment is much more like loading a module into a dynamic
> kernel rather than launching a POSIX process.  I would expect that
> some non-trivial labor would be involved in porting the build
> process for the byte-code interpreter to make it live with the
> VxWorks cross-development tools

Oh my.  OK - thanks very much for the advice.  The VxWorks target
would be PowerPC, but it sounds like porting even the byte-code
interpreter is no sure thing.


Wheeler
-- 
Wheeler Ruml, Palo Alto Research Center, Rm 1522, 650-812-4329 voice
ruml@parc.com, http://www.parc.com/ruml           650-812-4334 fax

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-04-03 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-28  1:46 [Caml-list] VxWorks? mailing list? Wheeler Ruml
2003-03-30 10:26 ` Xavier Leroy
2003-03-30 18:13   ` David Brown
2003-03-30 20:27   ` james woodyatt
2003-04-02 18:15   ` [Caml-list] " Wheeler Ruml

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).