1
0
mirror of https://github.com/PDP-10/its.git synced 2026-01-27 12:42:10 +00:00

Hello world sample files for Maclisp.

This commit is contained in:
Lars Brinkhoff
2020-09-27 14:26:02 +02:00
parent 210c513861
commit 2a3a69656e
4 changed files with 26 additions and 1 deletions

8
src/hello/hello.lisp Normal file
View File

@@ -0,0 +1,8 @@
;;; -*- lisp -*-
;; Hello world example for Maclisp. When this is compiled to HELLO
;; FASL, the file HELLO LOADER will dump out an executable program.
(defun hello ()
(princ "Hello Maclisp!")
(terpri)
(quit))

15
src/hello/hello.loader Normal file
View File

@@ -0,0 +1,15 @@
;;; -*- lisp -*-
(comment) ;Magic allocation comment.
;; This is the load and dump script for HELLO LISP. Pass the HELLO LOADER
;; file name on the LISP command line.
(progn
(close (prog1 infile (inpush -1))) ;Close channel for this file.
(fasload hello fasl)
(gc)
(purify 0 0 'bporg) ;Purify memory pages.
(sstatus flush t) ;Share pure pages with Maclisp.
(suspend ":kill " '(ts hello)) ;Write executable image.
(hello)) ;Start executing here.