
300 Embedded systems design
Writing a library
For example, given that you have an M68000 compiler
running on an IBM PC and that the target is an MC68040
VMEbus system, how do you modify or replace the runtime
libraries? There are two generic solutions: the first is to change
the hardware design so that it looks like the hardware design
that is supported by the run-time libraries. This can be quite
simple and involve configuring the memory map so that
memory is located at the same addresses. If I/O is used, then
the peripherals must be the same — so too must their address
locations to allow the software to be used without modifica-
tion. The second technique ...