You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to have different fasl extensions for x86 and x64 fasls?
E.g. Clozure has .wx32fsl and .wx64fsl extensions for different fasls respectively.
Thank you for doing great work,
Serhiy Y
The text was updated successfully, but these errors were encountered:
SB-FASL:*FASL-FILE-TYPE* (a variable of type SIMPLE-STRING) provides a default extension for FASLs. It's "fasl" by default, and you can set it to anything you like in your .sbclrc.
E.g. the fragment below will make it x86-64fasl or x86fasl, depending on word size:
That's all you need to get what you want. Here are some arguments against wanting it:
If you use ASDF to compile and load all Lisp code (that's a usual way to do it), there is no need for such things: ASDF puts FASL files into a separate hierarchy ("user cache"), below an implementation-specific subdirectory with a name depending on (machine-type), (lisp-implementation-type), (lisp-implementation-version) and (software-type). Thus output files are separated from Lisp sources, and incompatible output files have different locations. Look up "output translations" in ASDF manual to get more information on this feature.
If you use SLIME for development, commands like C-c C-k reintroduce the problem: SLIME (swank) doesn't use ASDF translations, putting each compiled file near its source. The following code in .swank.lisp fixes it:
Hello Anton,
Would it be possible to have different fasl extensions for x86 and x64 fasls?
E.g. Clozure has .wx32fsl and .wx64fsl extensions for different fasls respectively.
Thank you for doing great work,
Serhiy Y
The text was updated successfully, but these errors were encountered: