Cyan4973 / FiniteStateEntropy

New generation entropy codecs : Finite State Entropy and Huff0
BSD 2-Clause "Simplified" License
1.33k stars 143 forks source link

Add VC project for libfse.dll #75

Closed KrzysFR closed 7 years ago

KrzysFR commented 7 years ago

This PR fixes the existing VC2012 projects, and add a project to build libfse.dll (#74)

Changes:

List of exported methods:

Binary sizes (release x64)

Remaining issues:

Cyan4973 commented 7 years ago

not sure why the dll is larger than the exe with less stuff (no CLI, ...) ???

Maybe Dead Code Elimination ? The CLI doesn't need to access all functions available in the library.

I'm getting some errors when I try to enable code analysis

Not sure if they are the same, but I also had some issues with some static analyzers, notably around table initialization, as their heuristic was too simple to properly understand that the table was correctly initialized. That's a bummer, because it indeed becomes a barrier to usage of static analysis on the rest of the code base, since a few warnings will always remain.

is v0.9.0 ok ?

yes

if the projects are for VS2012, they should probably target v120 anyway?

OK

if you have not installed the 12.0 SDK, VS will ask you to upgrade it to a newer version on first solution load. Only real solution for this is to do the same thing as zstd and have a suite of scripts to build

That looks like a good solution. No urgency, let's have a first working version to improve.