From: Michael Hope <michaelh@ju...> - 2001-07-05 17:20:03
On Wed, 4 Jul 2001 paul@... wrote:
> >Thanks to the magic of cross compilation, the automated build now compiles
> >for x86 Linux, ppc Linux, and mingw32 based win32. See
> >http://sdcc.sourceforge.net/snapshots/. Note that mingw32 is gcc
> I just tried these (admittedly under vmware) and it seems to
> work well. It does seem to depend on an absolute pathname
> to the library.
I've set sdcc/win32 up to be installed in /sdcc. As far as I know sdcc
relies on absolute paths so that it can locate the libraries if called
from somewhere else. gbdk actually has a couple of features to make this
more user friendly - under win32 it automatically discovers the location
of the libraries based on the location of the running executable, and
under unix you can override the install location using GBDKDIR. This is
very useful for people who want binary kits but don't have local admin
> I noticed that the snapshot seems to be getting two copies of
> each binary, where the duplicates are much larger and don't
> have .exe on them. At first I thought these might be from
> cygwin, but I don't have that DLL and they run. I deleted
> all of the larger copies and it still runs.
That's a bug in the build scripts. I'll fix it.
> >I've added options to configure to disable ucsim,
> >packihx, and building the device libraries to help the mingw32 compile -
> >they currently can't cross compile as their configure scripts attempt to
> >run an executable to determine endinness, and you can't do that while
> >cross compiling.
> I ran into this while playing with mingw. The makefile runs the
> compiler to build the libraries.
> The packihx program will compile under mingw, so it seems like
> a good idea to move it into the portion that's built.
Agreed, if I can fix the configure problem.
> >* What should we do about configure and endinness while cross compiling?
> Good question. If it's win32, little endian is a given.
Agreed. I'm not sure how to embed this into the configure script though.
I'm imagining some type of 'if special case (mingw), little endian. if
not special case, try to run the detcting program' but I haven't
Get latest updates about Open Source Projects, Conferences and News.