[En-Nut-Discussion] Ethernut to Codevision porting

Harald Kipp harald.kipp at egnite.de
Thu Sep 16 11:56:39 CEST 2004


Hans,

haven't looked to Codevision for some time (years?).
The neuralgic parts for porting to another compiler are
(in no particular order):

- inline assembler
- const keyword
- data in code space
- interrupt routines
- pointer to routines within structures
- port access
- context switch (possibly the most difficult part)

In case you consider contributing your changes (highly
appreciated), I'll accept limited changes to the code.
Like I did for ICCAVR, see CONST and INLINE instead of
const and inline. But I hate most of the #ifdefs, with
which the code is already contaminated. Please try to
avoid them and use compiler.h instead.

Note, that the Configurator allows to create header files
and specific Makefiles. As far as possible I'll help.

Harald

P.S.: There had been many attempts in this direction,
but except a port of a very early release done by Pavel
Haiduc himself for a customer, nothing appeared. No
idea why people gave up. Same applies to IAR, btw.

At 21:32 16.09.2004 +1200, you wrote:
>Hi all,
>Has anybody ported version 3.6 to Codevision?
>If not, what's involved, just sit down and work trough the compile
>error's?
>
>
>Regards,  Hans.
>
>New Zealand




More information about the En-Nut-Discussion mailing list