Dear All: I write three functions main.c, test.c and test2.c. I want to locate the code segement of main.c at 0x00000 and code segment of test.c and 0x40000 follow by code of test2.c. I don't know if it is possible to do that? If it is possible, How could I do it? Thanks .... Best regards .....
since you do not specify the toolset, who knows if it is possible, at least for the '51 it is. The real question is WHY???? Erik
Sorry, I forget what tool I use. I use 51 Cx51. My reason is that I would have two CODE data segment. One is from 0x00000-0x10000, and the other is from 0x40000-0x80000. Because the two CODE segment have some differences, so I have to write the two functions on two segments. Try to image that, the second CODE segment is both mapped to XDATA and CODE area. The second DATA area can used as both DATA storage and code area, and save some space. You say it is possible. Can you give me a hint of doing that? Thanks ....
Have you tried looking in the Linker manual? (the Keil "Linker" performs the functions of both Linker & Locator)
I have checked the on line manual of BL51, but no information about that? Can you tell me where I can get the Linker Manual? Thank you .... Best regards ...
http://www.keil.com/support/man/docs/bl51/bl51_code.htm
Thank you ....
Have you tried looking in the Linker manual? Sometimes I think we may be too quick on the "Please read the manual" button. The keil stuff is impossible to use if you do not a) know the keyword chosen by Keil or b) read the whole thing. Just look at this post, the OP is looking to locate some stuff and need to do a search on code Erik PS: this is not to excuse Keil, but to be fair I must state that the same is true for about 98.17% of all other manuals I know.