|
From: <MSo...@Mi...> - 2003-03-12 19:55:38
|
Hello Jesus, Thanks for the hint. I just didn' try. I am usually using SDCC with cygwin and i am happy with this, but i saw that many people in the list are not and are doing funny stuff like using cygwin executables from the DOS prompt, rather than the cygwin shell. As i am frequently compiling GCC with MSVC, i just thought i can help by doing the same with SDCC. If it is easier with SDCC than with GCC (for GCC you will need cygwin because the GCC makefiles need a unix compatible shell) i don't get why all these people who are not familar with unix are using cygwin. I think cygwin is nice for unix guys that have some work to do on windows, but not for windows guys, that want to use SDCC. Maybe just a note in the manual is then enough to get those SDCC users away from cygwin, that don't know what they are doing with it. Best regards, Michael > -----Urspr=FCngliche Nachricht----- > Von: sdc...@li... > [mailto:sdc...@li...] Im Auftrag von=20 > Jesus Calvino-Fraga > Gesendet: Mittwoch, 12. M=E4rz 2003 19:33 > An: sdc...@li... > Betreff: Re: AW: [Sdcc-user] Newest versions and Makefiles on win >=20 >=20 > Hi, >=20 > I don't get it. The only extras you need to compile and link > SDCC with=20 > MSVC are flex, bison, and gawk (I got them for Windows from=20 > http://unxutils.sourceforge.net). The result is a very fast=20 > build (less=20 > than a minute in a Celleron 1GHz) and native windows=20 > executables. Why, if=20 > you have MSVC, would you need cygwin or mingw? Same goes for=20 > Borland C... >=20 > Jesus >=20 > At 01:57 PM 3/12/03 +0100, you wrote: > >Dear all, > > > >If you like, i would voulunteer to make and maintain the changes > >required to make SDCC compilable under cygwin with MSVC as=20 > 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=20 > >even possible to compile SDCC without using cygwin (e.g. just with=20 > >nmake). For GCC this does not work, because the make files make=20 > >extensive use of the unix shell, but it works fine to comile=20 > 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=20 > (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,=20 > >usually some minor changes in C header file names or folders are=20 > >required. For the resuling code, i never had problems. In=20 > 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=20 > >accordingly. For GCC this is my prefered method, but is a=20 > bit akward to > >maintain. > > > >What do you think ? > > > >Best regards, > > > >Michael > > > > > -----Urspr=FCngliche Nachricht----- > > > Von: sdc...@li... > > > [mailto:sdc...@li...] Im Auftrag > von Johan > > > Knol > > > Gesendet: Mittwoch, 12. M=E4rz 2003 13:18 > > > An: sdc...@li... > > > Betreff: Re: [Sdcc-user] Newest versions and Makefiles on win > > > > > > > > > > > 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 > > > nothing more > > > > happens: > > > > > > Any good reason to use mingw on cygwin?????????????? > > > > > > Johan > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by:Crypto Challenge is now > open! Get > > > cracking and register here for some mind boggling fun and > the chance > > > of winning an Apple iPod: http://ads.sourceforge.net/cgi-> > > > bin/redirect.pl?thaw0031en > > > > > > > > > _______________________________________________ > > > Sdcc-user mailing list > > > Sdc...@li... > > > https://lists.sourceforge.net/lists/listinfo/s> dcc-user > > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by:Crypto Challenge is now open! Get > >cracking and register here for some mind boggling fun and=20 > the chance of > >winning an Apple iPod: > >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > >_______________________________________________ > >Sdcc-user mailing list > >Sdc...@li...=20 > >https://lists.sourceforge.net/lists/listinfo/sdcc-user >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > 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... > https://lists.sourceforge.net/lists/listinfo/s> dcc-user >=20 |