mingw-w64 builds anyone?

87 views
Skip to first unread message

Carl Kleffner

unread,
Jan 7, 2014, 8:23:45 AM1/7/14
to yeppp-...@googlegroups.com
Hi!

as the yeppp library is written in C++ a usage within mingw-w64 (windows) requires the dll to be compiled by minwg-w64.
Is there any advice how to accompish this on Windows?

With best Regards

Carl

Marat Dukhan

unread,
Jan 7, 2014, 9:40:28 AM1/7/14
to Carl Kleffner, yeppp-...@googlegroups.com

Hi Carl,

Compilation of Yeppp! with mingw is not supported and there are no plans to enable such builds. However, I believe that it is possible to use Yeppp! with mingw (although I didn't try it myself). The library does not expose any C++ features in its interface, so you could use it just as any other C library (e.g. WinAPI DLLs). Yeppp! also does not have a dependency on Microsoft CRT as it uses its own tiny CRT library.

Regards,
Marat

--
You received this message because you are subscribed to the Google Groups "yeppp-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yeppp-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Marat Dukhan

unread,
Jan 7, 2014, 3:41:42 PM1/7/14
to yeppp-...@googlegroups.com
Hi Carl,

I just tried to use Yeppp! with mingw64, following the guide from MinGW wiki (http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs), and it works flawlessly. After I converted the COFF import library ($YEPROOT/binaries/windows/amd64/yeppp.lib) to GNU format (libyeppp.a) gcc/mingw64 linked to it without any problems, and the produced binaries are fully operational.

Below is the complete sequence of commands I used

cd "%YEPROOT%"
SetVars.bat
cd binaries/windows/amd64
reimp yeppp.lib
cd ../../..
cd examples/c
gcc -o binaries/CpuInfo.exe sources/CpuInfo.c -I "%YEPROOT%/library/headers" -L "%YEPROOT%/binaries/windows/amd64" -lyeppp
binaries\CpuInfo.exe

Regards,
Marat

Carl Kleffner

unread,
Jan 8, 2014, 10:15:47 AM1/8/14
to yeppp-...@googlegroups.com
Indeed,

examples runs like a charm (on Penryn):

Polynomial.exe
Naive implementation:
        Time = 4.093182 secs
        Performance = 0.409882 GFLOPS
Yeppp! implementation:
        Time = 0.251865 secs
        Performance = 6.661204 GFLOPS
Max error:   0.000%

Many thanks

Carl
Reply all
Reply to author
Forward
0 new messages