我想没人能回答的问题
我想没人能回答的问题???是吗,我要告诉你吗?呵呵。
也许我是错的,请你讲一讲,因为这个贴子我
和老的dos连接器差不多。详细的参数说明可以在A51.PDF上找到,另外前几天在C51BBS论坛上好像看到可以在源文件中直接定位,你可以去找找。
不过最后不要设定,编译器的定位一般都比较好。
但我一个文件里面有几十个函数如果一个个来
可以在 链接定位中使用通配符 实现。进一步的我也忘了,可以到 www.keil.com 搜索一下
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.
-------------------------------------------------------------------------------------
thanks very much.