From: "Gurr, David (MED, self)" <David.Gurr@med.ge.com>
To: Travis Bemann <bemann@execpc.com>
Cc: caml-list@inria.fr
Subject: [Caml-list] real-time ocaml RE: ocaml, simd, & fftwgel
Date: Thu, 1 Aug 2002 21:56:09 -0500 [thread overview]
Message-ID: <D4DBD8568F05D511A1C20002A55C008C09C294F5@uswaumsx03medge.med.ge.com> (raw)
Travis Bemann:
> Note that there is no such thing as a C allocator in OCaml, even
> though you can have "custom blocks" that have custom C finalization
> code (and which are also not looked inside by OCaml itself). ...
I chop my code into real and non-real time parts. The real
time part does no allocation. At initialization time
I call a C function that mallocs all the memory the real time
portion will use and returns a slew of pointers. The pointers
will not be followed by GC since they are outside the heap. That
is good since the stuff they point to will never contain pointers
to memory allocated at run time and thus no pointers to OCaml
allocated memory. This is what I would do in any language. If
you use Camoflage, you can even use OCaml type defs to do the
memory layout. By doing this, I dont care about the GC or
compaction or finialization or ... . The only time there is a
problem is if ocamlopt heap allocs a float and the work arounds
for that are no worse than writing a small chunk of code in C.
It is less painful than handwritten C. -D
-------------------
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
next reply other threads:[~2002-08-02 2:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-02 2:56 Gurr, David (MED, self) [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-08-02 2:56 [Caml-list] 'real-time' " Gurr, David (MED, self)
2002-08-02 7:12 ` Travis Bemann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D4DBD8568F05D511A1C20002A55C008C09C294F5@uswaumsx03medge.med.ge.com \
--to=david.gurr@med.ge.com \
--cc=bemann@execpc.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox