Programming

Compiling Common Lisp to an executable

steloflute 2022. 7. 30. 23:01

build - Compiling Common Lisp to an executable - Stack Overflow

 

Compiling Common Lisp to an executable

I recently started learning Common Lisp using SBCL. How can I compile my Lisp programs into a Windows binary?

stackoverflow.com

 

Making hello.exe:

* (defun main () (print "hello"))

MAIN
* (sb-ext:save-lisp-and-die "hello.exe" :toplevel #'main :executable t)
[undoing binding stack and other enclosing state... done]
[saving current Lisp image into hello.exe:
writing 3160 bytes from the read-only space at 0x22000000
writing 2592 bytes from the static space at 0x22100000
writing 30134272 bytes from the dynamic space at 0x22300000
done]
> dir hello.exe
31,457,304 hello.exe
> hello.exe

"hello"

31 MB executable file!

 

'Programming' 카테고리의 다른 글

개발 컨텐츠 모음  (0) 2022.08.26
[python] Simple web server  (0) 2022.08.18
[SQLD] 24. 그룹 함수 (GROUP FUNCTION)  (0) 2022.07.21
SQL: ROLLUP 기본사용법  (0) 2022.07.21
(Oracle) COMPRESS를 이용한 자원의 효과적 활용  (0) 2022.07.21