[En-Nut-Discussion] The biggest problem when portting

Harald Kipp harald.kipp at egnite.de
Sun Jul 20 19:09:06 CEST 2003


>The biggest problem is the type "int" when portting.
>The type int has different size in different platforms.
>On H8, the int is two bytes long so that it can not
>be used as pointer since pointer is 32bits on H8.
>I hate it !!!!

Oh...is that so? Well, I intended to replace all u_shorts
by u_ints. But that would not make much sense then.


>Too much work is needed to modify the crt routines.
>So......? What I should do next?
>To use system crt functions?

No, because it is very convenient to use fprintf() on
a socket and most apps would use it, making them non
portable.

Ralph?! Any idea from our porting specialist?

Harald




More information about the En-Nut-Discussion mailing list