From: <MSoegtrop@Michael-Soegtrop.de> - 2003-03-12 12:57:55
|
Dear all, If you like, i would voulunteer to make and maintain the changes required to make SDCC compilable under cygwin with MSVC as C-compiler, so that for running the resulting SDCC, no cygwin/mingw is required. For compiling SDCC, cygwin might still be required, but maybe it is even possible to compile SDCC without using cygwin (e.g. just with nmake). For GCC this does not work, because the make files make extensive use of the unix shell, but it works fine to comile GCC using cygwin and MSVC as C-compiler, so that the resulting gcc runs on plain windows. I think this would help a lot of the useres that have to use Windows. The only thing required in the makefiles is to put the extension of object files (usually .o but .obj with MSVC) and executables (usually empty but .exe with MSVC) in shell variables, so that this can easily be switched. This does not make the make files nicer, (e.g. you have file.%OX% instead of file.o everywhere) but it works. Besides this, usually some minor changes in C header file names or folders are required. For the resuling code, i never had problems. In the end C is an ANSI standard and for non GUI applications it is usually not reuired to use system specific functions. An alternative is to use sed/awk/perl/shell scripts to transform the makefiles and sources accordingly. For GCC this is my prefered method, but is a bit akward to maintain. What do you think ? Best regards, Michael > -----Urspr=FCngliche Nachricht----- > Von: sdc...@li...=20 > [mailto:sdc...@li...] Im Auftrag von=20 > Johan Knol > Gesendet: Mittwoch, 12. M=E4rz 2003 13:18 > An: sdc...@li... > Betreff: Re: [Sdcc-user] Newest versions and Makefiles on win >=20 >=20 > > > I'm at a win98SE machine with cygwin and mingw32-sdcc, if I use my > > Makefile and try to compile, it gets stuck like this and=20 > nothing more > > happens: >=20 > Any good reason to use mingw on cygwin?????????????? >=20 > Johan >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open!=20 > Get cracking and register here for some mind boggling fun and=20 > the chance of winning an Apple iPod:=20 > http://ads.sourceforge.net/cgi-> bin/redirect.pl?thaw0031en >=20 >=20 > _______________________________________________ > Sdcc-user mailing list > Sdc...@li...=20 > https://lists.sourceforge.net/lists/listinfo/s> dcc-user >=20 |