R. Matthew Emerson
rme at clozure.com
Sun Feb 24 17:55:52 CST 2013
On Feb 23, 2013, at 8:43 AM, Taoufik Dachraoui <dachraoui.taoufik at gmail.com> wrote:
> On Sat, Feb 23, 2013 at 2:32 PM, Taoufik Dachraoui <dachraoui.taoufik at gmail.com> wrote:
> is there any documents or tutorials about lap-functions
> I would like to write a part of a program using lap-functions
The LAP notation and the various defXlapfunction macros are not documented. There are numerous examples of its use in CCL's sources. The files in ccl:level-0;X86 contain a lot of LAP. When writing LAP, you need to think constantly about GC-safety. Section 17.2.3 of the manual talks about this a little bit.
Play around with it if you like, but it's pretty easy to mess up. You really do need to be familiar with the details of how CCL is implemented in order to write LAP successfully.
> How can I mix lap-functions within lisp expressions; In gen-code I define labels and I need to jump to those labels
> when needed; labels are pushed/popped from a stack
It's not possible to mix LAP and lisp code in the same function.
More information about the Openmcl-devel