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

Re: [MiNT] Coldfire code

> Unfortunately, as Andreas stated, no.

Then it might make sense (at least for not so time-critical routines) to just use the coldfire instructions also for m68k. Unless insructions are used that only exist on coldfire, the code should work on both processors. That would safe a lot of those ifdefs.

Vincent Rivière <vincent.riviere@freesbee.fr> schrieb am 16:38 Montag, 24.August 2015:

On 24/08/2015 11:38, Adam Klobukowski wrote:
> I'm very happy that time was taken to make FreeMiNT Coldfire
> compatibile. Thank you for that. Unfortunately, the way it was done,
> it is now very hard to read some files (esp. sys/arch/context.S)
> because there is so many #ifdefs. Maybe it can be split, so we'll have
> two versions of this file?

When I did that, I thought a lot, and finally I considered that multiple
#ifdef was the best solution. This was a safe solution to translate code
block step by step to ColdFire. Of course the whole assembler source
files are less readable, but fortunately there are only very few
assembler sources in FreeMiNT. On the other hand, when there are
multiple implementations of functions, they quickly go out of sync,
which is a lot worse.

> Coldfire does not have dbra???

Unfortunately, as Andreas stated, no.

Vincent Rivière