MinGW หรือ Cygwin?


MinGW

MinGW (Minimalist GNU for Windows), formerly mingw32, is a native software port of the GNU Compiler Collection (GCC) to Microsoft Windows along with a set of freely distributable import libraries and header files for the Windows API. MinGW allows developers to create native Microsoft Windows applications.[2] Included in MinGW are extensions to the Microsoft Visual C++ runtime library to support C99 functionality.

 

Cygwin

Cygwin (pronounced /ˈsɪɡwɪn/) is a collection of tools originally developed by Cygnus Solutions to allow versions of Microsoft Windows to behave in ways familiar to Unix users. Programs supported by Cygwin work well on Windows NT, Windows 2000, Windows XP, and Windows Vista, and some run acceptably on Windows 9x. While Cygwin provides header files and libraries that make it possible to recompile or to port Unix applications for use on computers running Microsoft Windows operating systems, it does not make binaries compatible with such computers running without Cygwin.

 

เจอจาก MinGW vs Cygwin มีคนสรุปว่า

- MinGW directly calls win32 API, and only offer it, so many "linux" programs may not compile
(มองง่ายๆ มันคือ library สำหรับ port ไป win32)

- cygwin for Window uses a compatibility layer that was reimplemented in a way or another. Probably to translate some calls to the Win32 API. You have to include shared libs to make it work. But it has a MinGW compatibility mode (-mno-cygwin), and basically, it won't make much difference with MinGW.
(สรุปก็คือ มันเป็น posix emulator)

 

หมายเลขบันทึก: 225059เขียนเมื่อ 24 พฤศจิกายน 2008 10:20 น. ()แก้ไขเมื่อ 10 มิถุนายน 2012 03:42 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (1)

อ่า เห็นด้วยครับ :-)

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท