guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom allocation of cells


From: Marius Vollmer
Subject: Re: Custom allocation of cells
Date: Mon, 06 Jun 2005 21:56:12 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Hi,
>
> I'd like to know whether one can reliably allocate a cell on its own,
> without using `scm_cell ()'.

No.

> So my question is: Is there a way to allocate cells, cheaper than
> `scm_cell ()', that could be used?

If there is a cheaper way (very possible), then we should use it to
implement scm_cell.

> This would be particularly useful for Guile-VM.  When calling a
> procedure (i.e. with the interpreter, via `scm_apply ()'), the VM as
> to build a list out of the arguments which are already available on
> the stack, and this turns out to be pretty costly.

Hmm, without knowning any details, my first thought is that you might
need to invent a new calling convention that does not not to call
scm_cell if you want to avoid scm_cell.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]