This project was inevitable in the AI era, so I decided to be the first to "crack it". Find it at https://github.com/TorZidan/LisaPascalCrossCompiler . Written in Python.
Now you can compile and link your Apple Lisa apps directly on your PC. You can even run the "alert" and "installtool" steps needed for LOS desktop apps. This makes the Lisa Workshop environment obsolete.
All tools generate byte-exact binaries as the tools in Workshop 3.0 (2.0 is also supported but untested due to lack of 2.0 source code examples out there).
Extensive tests were done in two ways:
- A set of tests build all Lisa source files from CHM (https://info.computerhistory.org/apple-lisa-code) and compares the build artifacts with the ones produced on a real Lisa. They all match, byte-exact.
- A set of tests download known LOS apps from Github, builds them, and compares the build artifacts with the ones posted at Github (in their .d42 disk images). They all match, byte-exact.
100% of the code is AI-generated, under my guidance. I made everything possible to produce readable, well documented, good code.
Feedback is welcome and appreciated.
Happy thanksgiving!
Hi
I am having some trouble understanding how the linker works. I was able to compile my test code
Whenever I try to link anything - I get the following type of errors
chrisr@hpchrisrs-Air LisaPascalCrossCompiler % python3 pascal/lpc.py --link
Lisa Pascal Compiler V1.0 (23-Nov-2026) 00:38:36 27-Nov-26
Input file - TAIPAN.OBJ
Input file - IOSPASLIB.OBJ
Input file - IOSFPLIB.OBJ
Input file -
Compilation aborted - no errors found. 0 lines.
I also tried as per the documentation
chrisr@hpchrisrs-Air LisaPascalCrossCompiler % python3 pascal/lpc.py --link=IOSPASLIB,IOSFPLIB TAIPAN.OBJ
Lisa Pascal Compiler V1.0 (23-Nov-2026) 00:48:20 27-Nov-26
Input file - $G+
Input file - TAIPAN.OBJ
Input file -
Compilation aborted - no errors found. 0 lines.
What am I doing incorrectly?
Jacexpo, to compile and link in one step, give the source name (TAIPAN or TAIPAN.TEXT) rather than the .OBJ file. The simplest way is to do it like this:
python3 pascal/lpc.py --link=IOSPASLIB,IOSFPLIB TAIPAN
Let me know if it works.
I will try to improve the documentation.
THanks - that got further - but it didn't link against the second library.
python3 pascal/lpc.py --link IOSPASLIB,IOSFPLIB TAIPAN.TEXT
Lisa Pascal Compiler V1.0 (23-Nov-2026) 16:28:52 27-Nov-26
Input file - $G+
Input file - IOSPASLIB,IOSFPLIB
Input file - TAIPAN.TEXT
List file -
Output file -
..... snipped .....
Elapsed time: 0.241 seconds.
Total code size = 25802
Linking TAIPAN.OBJ with IOSPASLIB
lisalinker: undefined: %F_ADD %F_DIV %F_EQ %F_GE %F_GT %F_LE %F_LT %F_MUL %F_NE %F_NEG %F_SUB %I_FLT %_EXP %_LN %_TRUNC
defined in IOSFPLIB.obj (boot folder): %F_ADD %F_DIV %F_EQ %F_GE %F_GT %F_LE %F_LT %F_MUL %F_NE %F_NEG %F_SUB %I_FLT %_EXP %_LN %_TRUNC
Is the problem that it is not parsing the second library in the command line?