Two Stop Bitsnew | comments | tags | ask | submitlogin
Apple Lisa Pascal Compiler sources (hansotten.com)
8 points by Rochus 10 days ago | 4 comments


  • me 9 days ago
    Interesting... I found one (negligible) problem: The "Compiler sources and objects exported files in Lisa TEXT format from dc42 disk images made with AppleSauce" file (http://pascal.hansotten.com/uploads/lisa/Lisa%20Pascal%20sou...) seems to be an empty ZIP file (download size is 22 bytes).

    Also, some stuff seems to be unimplemented in the compiler, e.g. the GlobalOptimize function, which is called from some locations in pas-MISC.TEXT.txt, does nothing:

      PROCEDURE GlobalOptimize(VAR fstmt: pstmt; thisprocpn:pn);
    
        BEGIN {GlobalOptimize}
        END; {GlobalOptimize}
    reply
    • Rochus 9 days ago
      > seems to be an empty ZIP file

      Same here. But the converted files are ok.

      > some stuff seems to be unimplemented

      As far as I understand, the provided files don't represent the latest compiler version. So maybe a later version had a better optimizer. But it's good to have the sources anyway, so I can use it to clarify language issues for my forthcoming Lisa Pascal compiler/transpiler.

      reply
      • me 9 days ago
        There's also some early Mac support in the compiler (there's a "MacFlag" that modifies details of the code generation). It's definitely good to have the sources and also a nice example of a compiler for my students.
        reply
    • bmonkey325 9 days ago
      Not really surprised. Depending on what phase in the compilation process things called it may have been decided that an optimizer wasn’t worth the effort or too ambitious for the time budget.
      reply
lists | rss | source
Search:
Two Stop Bits is a discussion web site about retro computing and gaming.