BL51 myfile.obj CODE (?pr?*?myfile (0x100))
使用通配符解决这个问题 :
-------------------------------------------------------------------------------------
QUESTION
Is there a way to use wildcards in the CODE and XDATA directives in the BL51 linker?
ANSWER
Yes. In C51 V6.01, wildcard support was added to BL51 for the segment location directives (CODE, XDATA, DATA, and so on). For example:
BL51 myfile.obj CODE (?pr?*?myfile (0x100))
in uVision2: Under the options for target, select the BL51 Locate tab and in the code section put this:
?pr?*?myfile (0x100)
locates all program segments (functions) found in the myfile.obj OMF file starting at address 0100h.
-------------------------------------------------------------------------------------
发表时间:2003年7月8日23:24:36