buildapp 生成獨立可執行lisp程式
buildapp 是一個開源lisp專案, BSD 協議 把sbcl 的lisp 程式碼編譯成獨立可執行程式。可以把lisp 指令碼編譯成一個二進位制的執行檔案由於他需要把所有的引用到的package 都會混進去,還有sbcl 的imag
。所以出來的包有點大一個hellow-world 也有4,50m
安裝:
sbcl(ql:quickload "buildapp")
(buildapp:build-buildapp)
windows 下就生成了 windows/system32/buildapp.exe
linux 下/usr/local/bin/buildapp
vim a.lisp
(defun main(argv)
(format t "hellow world"))
(main 1)
uildapp.exe --output hellow --load a.lisp --entry main C:\Windows\system32>buildapp.exe --output hellow --load a.lisp --entry maThis is experimental prerelease support for the Windows platform. useat your own risk. "Your Kitten of Death awaits!"This is experimental prerelease support for the Windows platform. useat your own risk. "Your Kitten of Death awaits!";; loading file #P"C:/Windows/system32/a.lisp"; file: C:/Windows/system32/a.lisp; in: DEFUN MAIN; (DEFUN MAIN (ARGV) (FORMAT T "hellow world")); --> PROGN SB-INT:NAMED-LAMBDA; ==>; #'(SB-INT:NAMED-LAMBDA MAIN; (ARGV); (BLOCK MAIN (FORMAT T "hellow world")));; caught STYLE-WARNING:; The variable ARGV is defined but never used.;; compilation unit finished; caught 1 STYLE-WARNING condition[undoing binding stack and other enclosing state... done][saving current Lisp image into hellow.exe:writing 2888 bytes from the read-only space at 0x22000000writing 1712 bytes from the static space at 0x22100000writing 27717632 bytes from the dynamic space at 0x22300000done]
C:\Windows\system32>hellow.exe
This is experimental prerelease support for the Windows platform. useat your own risk. "Your Kitten of Death awaits!
hellow world
C:\Windows\system32>
。所以出來的包有點大一個hellow-world 也有4,50m
安裝:
sbcl(ql:quickload "buildapp")
(buildapp:build-buildapp)
windows 下就生成了 windows/system32/buildapp.exe
linux 下/usr/local/bin/buildapp
vim a.lisp
(defun main(argv)
(format t "hellow world"))
(main 1)
uildapp.exe --output hellow --load a.lisp --entry main C:\Windows\system32>buildapp.exe --output hellow --load a.lisp --entry maThis is experimental prerelease support for the Windows platform. useat your own risk. "Your Kitten of Death awaits!"This is experimental prerelease support for the Windows platform. useat your own risk. "Your Kitten of Death awaits!";; loading file #P"C:/Windows/system32/a.lisp"; file: C:/Windows/system32/a.lisp; in: DEFUN MAIN; (DEFUN MAIN (ARGV) (FORMAT T "hellow world")); --> PROGN SB-INT:NAMED-LAMBDA; ==>; #'(SB-INT:NAMED-LAMBDA MAIN; (ARGV); (BLOCK MAIN (FORMAT T "hellow world")));; caught STYLE-WARNING:; The variable ARGV is defined but never used.;; compilation unit finished; caught 1 STYLE-WARNING condition[undoing binding stack and other enclosing state... done][saving current Lisp image into hellow.exe:writing 2888 bytes from the read-only space at 0x22000000writing 1712 bytes from the static space at 0x22100000writing 27717632 bytes from the dynamic space at 0x22300000done]
C:\Windows\system32>hellow.exe
This is experimental prerelease support for the Windows platform. useat your own risk. "Your Kitten of Death awaits!
hellow world
C:\Windows\system32>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/133735/viewspace-734067/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- matlab gui 生成獨立可執行的程式MatlabGUI
- WPF打包獨立執行的程式
- matlab生成exe獨立執行檔案已破解(好用)Matlab
- Android Wear 2.0:可脫離手機獨立執行Android
- 基於MATLAB2008B與VS 2003生成獨立可執行的程式Matlab
- 建立獨立的Java可執行JAR的三種方法 - frankelJavaJAR
- ARouter 攔截器之多 module 獨立執行
- 深入談一談iOS模組獨立執行iOS
- C# Winform 使用Costura.Fody打包一個成可獨立執行的exeC#ORM
- 使用原生Java程式碼生成可執行Jar包JavaJAR
- springboot的jar為何能獨立執行Spring BootJAR
- 基於Zookeeper執行獨立的Lagom服務Go
- java 生成可執行jar包JavaJAR
- dotnet 使用 MSTestRunner 將單元測試製作為獨立可執行檔案
- Java中使用ThreadPoolExecutor並行執行獨立的單執行緒任務Javathread並行執行緒
- MySQL中in(獨立子查詢)的執行計劃MySql
- 讓Sqlite脫離VC++ Runtime獨立執行SQLiteC++
- web-worker 獨立執行緒,效能最佳化Web執行緒
- MATLAB生成可執行檔案Matlab
- 淺談執行緒池(中):獨立執行緒池的作用及IO執行緒池執行緒
- 影響獨立伺服器穩定執行的因素伺服器
- Wpf應用程式作為一個單獨的可執行檔案
- java-maven生成可執行的 jar 包JavaMavenJAR
- 怎麼生成可執行的.jar檔案???????????JAR
- .net打獨立執行環境遇到無法trim遇到的bug
- 將Shiny APP搭建為獨立的桌面可執行程式 - Deploying R shiny app as a standalone applicationAPP行程
- 獨立開發者的程式碼簽名
- Java(j2se)編寫的程式如何生成可執行檔案?Java
- Java多執行緒/併發14、保持執行緒間的資料獨立:ConcurrentHashMap應用Java執行緒HashMap
- 初識ABP vNext(12):模組的獨立執行與託管
- Java多執行緒/併發13、保持執行緒間的資料獨立: Collections.synchronizedMap應用Java執行緒synchronized
- 利用Salamander .Net Linker生成可脫離.net framework環境執行的程式Framework
- OpenRTMFP/Cumulus Primer(19)獨立使用CumulusLib時的執行緒安全Bug執行緒
- 互斥與獨立
- Python如何生成windows可執行的exe檔案PythonWindows
- LightDB/PostgreSQL 生成可重複執行的指令碼SQL指令碼
- apache_weblogic自動生成可執行指令碼ApacheWeb指令碼
- 思否獨立開發者丨@主執行緒:如果全身心投入1年,但是收入是0,你還願意做獨立開發者嗎?執行緒