Lisp HUG Maillist Archive

LispWorks architecture?

Hello,

How do I get the architecture LispWorks has been compiled for?

I would prefer to call a specific function rather than poking in the *features*.

None of these give me the correct answer, I am looking for X64 or i386, or something like that:

CL-USER 169 > (machine-instance)
"tortilla.local"

CL-USER 170 > (machine-type)
"x86"

CL-USER 171 > (machine-version)
"486"

CL-USER 172 > (software-type)
"Darwin"

CL-USER 173 > (software-version)
"12.4.0"

CL-USER 174 > (lisp-image-name)
"/Applications/LispWorks 6.1 (64-bit)/LispWorks (64-bit).app/Contents/MacOS/lispworks-6-1-0-macos64-universal"

CL-USER 175 > (lisp-implementation-type)
"LispWorks"

CL-USER 176 > (lisp-implementation-version)
"6.1.1"


Best,
Camille


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: LispWorks architecture?

Unable to parse email body. Email id is 12286

Re: LispWorks architecture?

Just because - to me - the original question was a bit ambiguous (and it might affect the solution). Do you want to know the machine architecture regardless of the LW running on it or the architecture of LW?

For example, you could be running on an AMD64 processor with a professional LW image (32-bit). In such an instance, would you like to know that the architecture is 64 or 32 bit?

Jeff M.


On Fri, Jun 14, 2013 at 11:42 AM, Camille Troillard <camille@osculator.net> wrote:


On 14 juin 2013, at 18:39, Dave Fox <davef@lispworks.com> wrote:

> You can consult the documentation for *features* at
>
> http://www.lispworks.com/documentation/lw61/LW/html/lw-646.htm
>
> and then write something like:
>
> (defun architecture ()
>       #+:x86 "i386"
>       #+:x64 "X64"
>       #-(or :x86 :x64) "unknown")

Thank you Dave.

I was trying to avoid this, though I understand it is not such a problem since it does not change so often.


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:35 UTC