The following features can be used to distinguish between platforms or characteristics of the platform.
Solaris2
OSF/1
HP-UX
IBM AIX
System 5 Release 4 machine (for example Solaris2)
Linux
Unix, including all of the above.
32-bit versions of Microsoft Windows (including Windows 95 and Windows NT)
The compiler targets a little endian machine, for instance DEC Alpha and x86.
Code can distinguish the three current LispWorks implementations (if you regard all the non-Linux Unix implementations as the same) like this:
#+:win32 "LispWorks for Windows"
#+:linux "LispWorks for Linux"
#+(and :unix (not :linux)) "LispWorks for Unix"
The following features can be used to distinguish between versions of LispWorks:
All major version 4 releases.
Release 4.3.
All major version 5 releases.
The following features are present in LispWorks with the meanings defined for ANSI CL:
Note that sometimes it is necessary to write code that examines
*features*
at load time or run time. For example this is true when you put platform-dependent code in fasl files that are shared between multiple platforms.