[心得] 編譯 MicroPerl using VS2008 Express

看板Perl作者 (㊣小臃腫㊣)時間15年前 (2010/03/27 12:19), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
主要是參考這位日本仁兄的心得: http://pub.ne.jp/wakapon/?entry_id=1174512 網址1 http://pub.ne.jp/wakapon/?entry_id=1056978 網址2 目前最新的 5.10.1 也可以編得出來 步驟如下: 1. 另存網址2的 Makefile.w32 及 win32_micro.c 到 x:\path\perl-5.XX.X\ 2. 修改 uconfig.h: (1) disable: #define I_DIRENT (2) disable: #define Direntry_t struct dirent 3. 修改 unixish.h: (1) #define BIT_BUCKET "/dev/null" 改為 #define BIT_BUCKET "" 4. nmake -f Makefile.w32 (記得用 「Visual Studio 2008 命令提示字元」) 補充: 1. 在 linux based 環境編出 microperl 簡單很多: make -f Makefile.micro 雖然也可以用 cygwin 編出 microperl, 但還是需要 cygwin1.dll 2. 原文提供的 Makefile 內的 CFLAGS 沒加最佳化選項, 可以再加 /O1 or /O2 or /Ox -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.84.254.179
文章代碼(AID): #1BhOTGAr (Perl)
文章代碼(AID): #1BhOTGAr (Perl)