Sunfish with GCC

John-Mark Bell jmb202 at
Tue Jul 5 17:08:49 PDT 2005

On Tue, 5 Jul 2005, John Tytgat wrote:

> In message <4e014e844d.Jo at>
>           John Tytgat <John.Tytgat at> wrote:
> > 2. Investigate whether StubsG and the CMunge program can be used for
> >    GCC module generation.  If this really works, then non-Norcroft owners
> >    can generate C based modules.
> Did more than this suggestion : I've now added CMunge v0.52 (which is
> more recent than what's to be found in the StubsG v0.04 release) in our
> GCCSDK build system (with some fixes).  This means, not only do we have now
> a full solution for GCC module builders on RISC OS, but also the
> cross-compiling case is covered.
> I did some some testing with cross-compiling Sunfish and that seems to
> work.  Typically you will have in the makefile :
> --8<--
> CMHG = /home/riscos/cross/bin/cmunge
> CMHGFLAGS = -throwback -32bit -tgcc
> moduledefs.h modulehdr.o: modulehdr.cmhg
> 	$(CMHG) $(CMHGFLAGS) modulehdr.cmhg -o modulehdr.o -d moduledefs.h
> --8<--

I've just checked in a patch to make it generate 32bit veneers by default, 
as this is likely to be the standard usage (and cmhg also defaults to 
32bit code)
Tested with Iconv - it still works ;)


More information about the gcc mailing list