This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linker Issue ...

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 .....

Parents
  • 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 ....

Reply
  • 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 ....

Children