Update on MinGW convertion project...

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

You should be using this NASM http://nsrt.edgeemu.com/nasmw.zip
It has a lot of bugs fixed.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
TheDanish
Rookie
Posts: 12
Joined: Fri Jul 30, 2004 10:23 pm

Post by TheDanish »

Done! And I updated the archive, just in case. Right now I'm taking a crack at the -O0 problem, though with my track record I don't think I'll be getting far. :(
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

I have a lot of timing updates for MinGW and stuff that should also help towards the -O0 problem, but I'm not commiting it till ipher is back because I don't want to break MSVC.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
burning shadow
Rookie
Posts: 32
Joined: Wed Aug 25, 2004 1:55 pm
Location: spb, ru
Contact:

Post by burning shadow »

Nach wrote:I have a lot of timing updates for MinGW and stuff that should also help towards the -O0 problem, but I'm not commiting it till ipher is back because I don't want to break MSVC.
MSVC is already broken. At least MSVC6.

Code: Select all

cl /Ox /G6 /c /EHsc /D__WIN32__ /Fowin/winlink.obj win/winlink.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

winlink.cpp
win/winlink.cpp(2398) : error C2059: syntax error : 'bad suffix on number'
win/winlink.cpp(2398) : error C2146: syntax error : missing ';' before identifier 'L'
win/winlink.cpp(2398) : fatal error C1004: unexpected end of file found
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

burning shadow wrote: MSVC is already broken. At least MSVC6.
Correction, your unpatched MSVC is broken.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
burning shadow
Rookie
Posts: 32
Joined: Wed Aug 25, 2004 1:55 pm
Location: spb, ru
Contact:

Post by burning shadow »

Nach wrote:Correction, your unpatched MSVC is broken.
There were no problems with it before. Anyway, where can I get the patch?
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

burning shadow wrote:
Nach wrote:Correction, your unpatched MSVC is broken.
There were no problems with it before. Anyway, where can I get the patch?
We weren't using C99 before. Look on MS's site for MSVC 6 updates.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
burning shadow
Rookie
Posts: 32
Joined: Wed Aug 25, 2004 1:55 pm
Location: spb, ru
Contact:

Post by burning shadow »

Nach wrote:We weren't using C99 before. Look on MS's site for MSVC 6 updates.
Thanks. I've found microsoft released new service pack. I'll try it later. :)
TheDanish
Rookie
Posts: 12
Joined: Fri Jul 30, 2004 10:23 pm

Post by TheDanish »

Nach, I forgot to ask. Where are you getting these gnuwin32 nasm builds? The best I can do is to grab the Cygwin package?
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

TheDanish wrote:Nach, I forgot to ask. Where are you getting these gnuwin32 nasm builds? The best I can do is to grab the Cygwin package?
TRAC (from SNEeSe) is the one who invented the GNUWIN32 patch. I'm compiling NASM myself using his patch. Not sure what I did with the patch...
It used to be included with older versions of SNEeSe. Now he uses an object conversion tool we discussed writing. I think I'll use that for ZSNES too, but didn't bother fixing the makefile for it yet.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
burning shadow
Rookie
Posts: 32
Joined: Wed Aug 25, 2004 1:55 pm
Location: spb, ru
Contact:

Post by burning shadow »

Nach wrote:We weren't using C99 before. Look on MS's site for MSVC 6 updates.
Ok, I've installed the latest service pack from MS and tried to compile. I've got the same error.
burning shadow
Rookie
Posts: 32
Joined: Wed Aug 25, 2004 1:55 pm
Location: spb, ru
Contact:

Post by burning shadow »

So, is there a way to compile current zsnes source using MSVC6? With the latest service pack 6 I still get an error:

Code: Select all

cl /Ox /G6 /c /EHsc /D__WIN32__ /Fowin/winlink.obj win/winlink.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

winlink.cpp
win/winlink.cpp(2406) : error C2059: syntax error : 'bad suffix on number'
win/winlink.cpp(2406) : error C2146: syntax error : missing ';' before identifier 'L'
win/winlink.cpp(2406) : fatal error C1004: unexpected end of file found
There's an entry:

Code: Select all

volatile __int64 copymaskRB = 0x001FF800001FF800LL;
Is it possible to convert it to something MSVC6 will understand?
burning shadow
Rookie
Posts: 32
Joined: Wed Aug 25, 2004 1:55 pm
Location: spb, ru
Contact:

Post by burning shadow »

I compiled it using mingw, thanks god.. :) Just one thing I wanna ask, how to tell gcc where my dxsdk headers are without modifing the makefile?
Post Reply