Re: Whats Better ???
From: Paul Burke (paul_at_scazon.com)
Date: 10/07/04
- Next message: Michael N. Moran: "Re: Policy on rebooting?"
- Previous message: Jon Beniston: "Wireless positioning systems"
- In reply to: Lighthammer: "Re: Whats Better ???"
- Next in thread: Hans-Bernhard Broeker: "Re: Whats Better ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 07 Oct 2004 11:40:04 +0100
Lighthammer wrote:
> Thanx for the Help ... and suggestions guys .. but what would you suggest
> for easier platform independance ??
>
> Interms of moving Code over to different CPU Architectures that use
> differrent Registers, Calls Ect ?
>
> Could One write a set of functions that is compatible on lets say PC and
> easily ported to a CELL PHONE or Epprom for PIC DEv ?
>
> MASM i think would not be a good choice here <- reliant on X86 architecture
> .... :(
>
For portability, use a high level language, say C, and keep all the
processor- dependent stuff separate, so you only have to rewrite a few
primitives. This won't be ALL the solution- microcontroller
archtitectures can be VERY eccentric- and capabilities may be different-
e.g. you might have depended on double precision fp, and it's not
available for the new compiler. There will also be problems porting to
new peripherals etc. But with luck, you can keep most of the original
code in a port, and if you are VERY lucky, a moderately complex program
can be ported in an afternoon (it happened to me once- it took days of
testing to convince me I'd got it right though).
Paul Burke
- Next message: Michael N. Moran: "Re: Policy on rebooting?"
- Previous message: Jon Beniston: "Wireless positioning systems"
- In reply to: Lighthammer: "Re: Whats Better ???"
- Next in thread: Hans-Bernhard Broeker: "Re: Whats Better ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]