Carl
2014-Mar-01 16:56 UTC
[LLVMdev] What is the difference between OSType.Win32 and OSType.MinGW32 ?
Hello, I'm generating/compiling/parsing llvm IR code targeting windows 32bits on my win7 64bits install. And I'm wondering what os should I use in my triple. I tried both without seeing much differences. Is there supposed to be any ? What are the differences between the two OSTypes? Secondly, I'm doing the linking of the .o files created by llvm with gcc from a mingw64 install. Should I link the .o. files with clang instead of gcc? What benefits could I expect from this change? Cheers, Carl. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140301/78d8c11a/attachment.html>
Yaron Keren
2014-Mar-01 17:39 UTC
[LLVMdev] What is the difference between OSType.Win32 and OSType.MinGW32 ?
To the second question, clang on win32-mingw uses gcc (ld) to link the object files so there should be no difference. 2014-03-01 18:56 GMT+02:00 Carl <name.is.carl at gmail.com>:> Hello, > > I'm generating/compiling/parsing llvm IR code targeting windows 32bits on > my win7 64bits install. > And I'm wondering what os should I use in my triple. > I tried both without seeing much differences. > Is there supposed to be any ? > What are the differences between the two OSTypes? > > Secondly, I'm doing the linking of the .o files created by llvm with gcc > from a mingw64 install. > Should I link the .o. files with clang instead of gcc? > What benefits could I expect from this change? > > Cheers, > Carl. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140301/c9893a2e/attachment.html>
Michael Spencer
2014-Mar-08 02:40 UTC
[LLVMdev] What is the difference between OSType.Win32 and OSType.MinGW32 ?
On Sat, Mar 1, 2014 at 8:56 AM, Carl <name.is.carl at gmail.com> wrote:> Hello, > > I'm generating/compiling/parsing llvm IR code targeting windows 32bits on my > win7 64bits install. > And I'm wondering what os should I use in my triple. > I tried both without seeing much differences. > Is there supposed to be any ? > What are the differences between the two OSTypes? > > Secondly, I'm doing the linking of the .o files created by llvm with gcc > from a mingw64 install. > Should I link the .o. files with clang instead of gcc? > What benefits could I expect from this change? > > Cheers, > Carl.Win32 matches the MSVC ABI. MinGW32 matches the... MinGW32 ABI which is basically the gnu ABI, except when it's not. - Michael Spencer