[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
binary loadable files
From: |
Keisuke Nishida |
Subject: |
binary loadable files |
Date: |
Tue, 30 Jan 2001 00:20:29 -0500 |
User-agent: |
Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.96 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
Hello,
I'm considering how to store bytecodes in binary files.
I want to make it as general as possible, so that I can
store not only bytecodes but also any Scheme objects.
I'm thinking of the following procedures:
(Are there better names?)
;; Write OBJ to PORT in the binary format
(dump OBJ [PORT])
;; Read an object from PORT in the binary format
(pull [PORT])
If PORT is a file, pull will use read-only shared mmap
so that some memory can be shared between processes.
Since I want to store any objects, I'm thinking of adding
new slots `dump' and `pull' to scm_smob_descriptor.
Is that all good thing? May I continue to work on this?
Kei