Live data from Hacker News

Porting Windows Dynamic Link Libraries to Linux

github.com

41–44 of 44 posts

Re: Porting Windows Dynamic Link Libraries to Linux

#41
post #30

This reminds me of a tool Jeff Roberts wrote at RAD Game Tools which would repackage libraries so they were loadable on Linux. At the time the motivation was that MSVC was generating much better code than GCC for Bink, so he'd compile on Windows with MSVC and cross-link to Linux with his custom tool.

Does MSVC still generate better code than GCC ? I do not find any recent benchmark.

Of things I have benchmarked in the past 5 or so years GCC has not been beaten by GCC for any of my workloads or benchmarks. I do mostly things related to 3d graphics and are heavy on the CPU, but what little IO I have done follows this pattern too.

As near as I can tell msvc is strictly inferior except for windows community adoption than gcc/mingw. Of course, benchmark your workload, I could be doing something odd that you are not.

Re: Porting Windows Dynamic Link Libraries to Linux

#42
post #40

Earlier quoted context omitted.

I've always thought why is more important than why not. Example: "I'm going to hit myself in the dick with a hammer."

Actually, that's not so problematic unless there's an anvil involved, or the hammer is moving quickly.

I still don't think its a problem. I can swing the hammer if AnalogNoise cannot build up sufficient speed.

Re: Porting Windows Dynamic Link Libraries to Linux

#43
post #28

Earlier quoted context omitted.

A bunch of C runtime library and Windows APIs are implemented or stubbed: * https://github.com/taviso/loadlibrary/tree/master/peloader/w... * https://github.com/taviso/loadlibrary/blob/master/peloader/c...

Like... in Wine? (Yes I read the readme)

Much smaller and without wineserver too.

Re: Porting Windows Dynamic Link Libraries to Linux

#44
post #41
post #30

Earlier quoted context omitted.

Does MSVC still generate better code than GCC ? I do not find any recent benchmark.

Of things I have benchmarked in the past 5 or so years GCC has not been beaten by GCC for any of my workloads or benchmarks. I do mostly things related to 3d graphics and are heavy on the CPU, but what little IO I have done follows this pattern too. As near as I can tell msvc is strictly inferior except for windows community adoption than gcc/mingw. Of course, benchmark your workload, I could be doing something odd t…

GCC has not been beaten by GCC --> MSVC has not been beaten by GCC

ftfy

Post reply on HN