This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
尊敬的团队:
我的一位客户想知道如何在 CMD 文件中完全定义 rts2800_fpu32.lib 和 IQmath_fpu32.lib 的位置。
他尝试了以下方法来定义、 但此定义只能包含其中的一部分、用这种方法编写非常麻烦。
.cal : > LIB_FLASH PAGE = 0 { -lrts2800_fpu32.lib <log10.obj fd_mpy.obj u_div.obj l_div.obj fs_tol.obj fs_toul.obj fd_tol.obj fs_tofd.obj fs_tou.obj boot.obj exit.obj _lock.obj> (.text) -lrts2800_fpu32.lib <exit.obj _lock.obj> (.cinit) rts2800_fpu32.lib <args_main.obj l_tofs.obj i_tofs.obj fs_cmp.obj> (.text) }
您能否提供更可行的方法?
此致
您好!
如果要将库中的特定 API 和目标文件分配给特定段、则没有其他方法。 如果可以分配整个 rts2800_fpu32.lib .text 段、则可以执行以下操作:
.cal:{ -lrts2800_fpu32.lib (.text)}> LIB_FLASH 页= 0
-Shantanu