?? rebuild.txt
字號:
README for SDT 2.50 Embedded C library fix release 990202
=========================================================
Two object files (status.o & vsprintf.o) were accidentally left out of the Embedded C
library binaries supplied with SDT 2.50. Last minute changes to the C library moved code
for the Embedded C libraries from __fp_exception into __fp_status.
This ZIP file fixes the problem by providing pre-built versions of the 4 libraries that
include the missing object files. These should be copied into the toolkit lib\embedded
directory, overwriting the faulty libraries.
Rebuilding the SDT 2.50 Embedded C libraries
==============================================
Normally there is no need to rebuild the C libraries. However, if a special variant
is required or the sources have been customised, it might be necessary to rebuild the
Embedded C library from the supplied source.
The Embedded C library is rebuilt using the rebuild kit, provided in directory "cl/clib.b".
You must make some changes to the rebuild kit first to ensure the missing objects are built
and incorporated into the library.
1. Edit makefile.pc
a) Add an extra make rule to make "status.o" by copying the make rule for "except.o"
but modifying it so that the object file name is "status.o" instead of "except.o", and
the predefine (-PD) is "status_s".
except.o:; $(AS) $(AFLAGS) -PD "except_s SETL {TRUE}" -o except.o ..\..\fplib\except.s
status.o:; $(AS) $(AFLAGS) -PD "status_s SETL {TRUE}" -o status.o ..\..\fplib\except.s
fcheck.o:; $(AS) $(AFLAGS) -PD "fcheck_s SETL {TRUE}" -o fcheck.o ..\..\fplib\except.s
In addition, add the following line after "_vsprntf".
vsprintf.o:; $(CC) $(CFLAGS) -Dvsprintf_c -o vsprintf.o ..\..\printf.c
b) Add "status.o" and "vsprintf.o" to the list of dependencies for the library
armlib_i.16$(ENDIAN) \
oslow.o oshigh.o malloc.o free.o realloc.o calloc.o stats.o h1_alloc.o\
...
rt_udiv.o divtst.o sdiv10.o udiv10.o _sdiv.o _udiv.o rtrwchck.o\
牋牋牋
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -