L
L
Lorents2016-07-03 20:53:00
C++ / C#
Lorents, 2016-07-03 20:53:00

Compiling zopfli (gcc vc msvc)?

Compiled the zopfli project with msvc and gcc.
msvc options:

CFLAGS = /W2 /O2 /Ox /Ot /Ob2 /Gw /Gy /GL /arch:SSE2 /fp:fast /MT
CXXFLAGS = $(CFLAGS) /TP /EHsc

gcc options:
CFLAGS = -W -Wall -Wextra -ansi -pedantic -lm -O3 -Wno-unused-function
CXXFLAGS = -W -Wall -Wextra -ansi -pedantic -O3

Performance test:
$ time /c/Users/Lorents/Desktop/zopfli-gcc.exe --i10 /c/Users/Lorents/Desktop/enwik8

real    4m11.807s
user    0m0.000s
sys     0m0.000s

$ time /c/Users/Lorents/Desktop/zopfli-vc.exe --i10 /c/Users/Lorents/Desktop/enwik8

real    4m55.000s
user    0m0.000s
sys     0m0.000s

Can you please tell me how to increase the performance of the MSVC variant?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question