⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rebuild.txt

📁 很好的嵌入式操作系统资料
💻 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 + -