[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] GCC (>4) Experience



m0n0 wrote:
Within netsurf, one of my callbacks is called with "false"/Invalid
arguments. It should be 10, but with:

We cannot say what happens.
You have to disassemble the program, see how the parameters are expected, what is passed... It may be a mix of compilation flags, a compiler bug, a memory overwrite, etc...
No possible conclusion with such a few information.

-m68020-60 -g -fstack-check it is 1

Do *not* use -g with -m68020-60 when linking, due to the ill GCC/MiNTLib behaviour which has been the standard for ages in SpareMiNT.

I recompiled everything with the m68k-atari-mint cross-compiler ( v. 4.5.1
) (also the additional html&  css libs) and -m68000 flag, now everything
works well.

This is good news !

I though that this is maybe caused by the different return methods for
floats with the different target architectures... and that I missed to
compile one of the addition libs with the correct flags... but I doubt
that ;)

Yes, this is a possible problem. But only for floats, and you are speaking about integers. It is unlikely to be the real cause. But who knows.

And If I remember correctly, there is no way to detect the
architecture of the lib file, right?

Yes, unfortunately.

With the cross-compiler the whole bunch of stuff is compiled within less
than 25 minutes :)

And you use Cygwin, which is nice and compatible, but very slow.
On Linux, it would take 5 minutes ;-)

--
Vincent Rivière