[Mono-dev] [PATCH] Mono port to the MIPS 64-bit

Paolo Molaro lupus at ximian.com
Fri Apr 24 10:57:29 EDT 2009


On 04/23/09 Mark Mason wrote:
> As for splitting MIPS/MIPS64 - I think keeping them together may be  
> more appropriate. The MIPS64 code generator is less of a divergence  
> from MIPS32 than PPC64 is from PPC --- there's a lot of potential code  
> reuse to be had by keeping them together. That's why I'd started the  
> n32 port in the way that I did (and that Ian & company continued with  
> for extending it).

Yes, the ports should be shared. These days for ppc only the machine
description is separated, I guess miguel was thinking of the ppc
work-in-progress merge changes when things were separate, but that was
done just to help fix the code before the merge and there is no point to
do that on mips.
In fact (if there is any volunteer:) the same should be done for the s390
and s390x ports so that all that duplicated code is reduced.

As for the machine description files: I just committed a change in svn
that allows multiple files to be used, so for mips and mips64 you could
split the existing file into:
	cpu-mips-common.md
and
	cpu-mips32.md and cpu-mips64.md
where the latter files will include only the opcodes that are actually
changed in 32 and 64 bit systems, again reducing duplication.
The current cpu-mips.md diff in bugzilla is suboptimal as it forces
the larges sizes to be used. With the split it will be much better.
The same could be done for ppc and ppc64.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-devel-list mailing list