[Openmcl-devel] x86-32 inline assembly possible?

Gary Byers gb at clozure.com
Thu Oct 28 14:47:38 PDT 2010


No, there isn't.

A long time ago (in 68K MCL), there was something called LAP-INLINE.
A short explanation of why it was removed is that using it implicitly
depended on lots of compiler details; when those details changed,
code that used LAP-INLINE broke.

GCC addresses this problem by using a fairly rich interface-definition
language to describe the effects and dependencies of a block of inline
assembler.  (In some GCC versions, that language looks a lot like line
noise ...)  Rather than introduce something similar, we just dropped
LAP-INLINE.

Matt's idea (user-definable "virtual instructions" (vinsns)) might
be a way to reintroduce some of this functionality, though there'd
be some issues to resolve there.

On Thu, 28 Oct 2010, Kaz Kylheku wrote:

>
> Hey all,
>
> I know about ccl::defx8632lapfunction, but that interface produces a 
> function, not inline code.
>
> Is there a way to write x86 assembly using the LAP syntax (or anything else? 
> octet values?) within a Lisp function?
>
> Thanks.
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
>
>



More information about the Openmcl-devel mailing list