Re: Memory mapped hardware registers

From: Anton Erasmus (nobody_at_spam.prevent.net)
Date: 01/30/05


Date: Sun, 30 Jan 2005 10:49:46 +0200

On Sun, 23 Jan 2005 21:32:09 +0100, Michael Schnell
<mschnell_at_bschnell_dot_de@aol.com> wrote:

>[Snipped]
>
>
>BTW.: You are the first person I meet using the GNU compiler with an
>68K. I might be intending to do that (for a non-Linux project). So I
>have some questions. What debugger are you using ? Does this work OK ?
>

Hi,

I have used the 68K GNU compiler on a project where we previously used
the Crosscode compiler. The 68K GNU Compiler generates MUCH better
code than the Crosscode compiler. You need to get a version of the gcc
toolset which includes the patches made by Peter Barada. This includes
a patch for the support of the interrupt attribute with the 68K, which
enables the writing of interrupt handlers in C. Normally these patches
refer to the Coldfire toolset, but this is the same toolset as for the
m68K - just specify the actual CPU used. e.g -m68060 for the 68060.
I use insight or gdb+DDD as the debugger. I modified an existing
gdb-stub for our hardware, and can source level debug over the
serial port. The actual code runs in RAM (copied at startup) so
breakpoints etc. are not a problem.

Hope this helps
Regards
   Anton Erasmus