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

About linker command file (.lin)

Dear all,
I have a question about the writing format of .lin file in Keil C.

Ex1: ?PR?*?A => it means "all" functions within A.c

But,I saw the code segment as below in .lin file:
?PR?A

what does it mean ?

And does these 2 must exist "together" ?

Parents
  • After reviewing .m51 file I found the followings:

    1. almost all functions within source file call ?PR?module
    2. Besides, if no local variables defined within one function, then this function does NOT call ?PR?module
    3. 3 kinds of objects are generated after compiling:
    (a)program code (b)program data (c)constant data

    Thus I guess maybe ?PR?module stands for "all local variables" within this module...

    Am I correct ?

Reply
  • After reviewing .m51 file I found the followings:

    1. almost all functions within source file call ?PR?module
    2. Besides, if no local variables defined within one function, then this function does NOT call ?PR?module
    3. 3 kinds of objects are generated after compiling:
    (a)program code (b)program data (c)constant data

    Thus I guess maybe ?PR?module stands for "all local variables" within this module...

    Am I correct ?

Children
No data