On Fri, Aug 03, 2012 at 05:13:39PM +0200, Michael Schnell wrote:
> I have no decent knowledge about Coldfire. I understand that
> Coldfire is a kind of RISK and has different ASM code, only
> providing that any 68K ASM instruction can rather easily translated
> into one or multiple Coldfire ASM codes. So a C compiler might
> optimize cold for Coldfire into a completely different instruction
> sequence than when optimizing for CPU32.

My understanding is that the coldfire is still m68k, but has dropped
BCD support as well as some addressing modes from the instructions.
So it is partially object compatible as long as the code doesn't use
any of the removed features.

So it is quite similar but not the same.

According to freescale most coldfire object code will execute on the m68k
chips since the coldfire instruction set is pretty much just a subset
of the m68k.  So if the compiler can generate code for the coldfire,
then that code ought to work fine on the m68k, although it could perhaps
have made it slightly more efficient by using some of the instructions
that are missing on the coldfire.

-- 
Len Sorensen
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to