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

"WARNING L18

What does it mean when you have an "WARNING L18: SEGMENT DOES NOT FIT IN PDATA PAGE"?
I can't find this warning in manual.

Parents
  • The Keil tools allow you to specify the memory model for a C file or for a project. However, you can also specify the memory model on a function-by-function basis. You can also specify the memory space on a variable-by-variable basis.

    I think that's pretty flexible.

    Jon

Reply
  • The Keil tools allow you to specify the memory model for a C file or for a project. However, you can also specify the memory model on a function-by-function basis. You can also specify the memory space on a variable-by-variable basis.

    I think that's pretty flexible.

    Jon

Children
  • "you can also specify the memory model on a function-by-function basis."

    Last time I tried that (v6.something), it didn't work. :-(
    The Linker just kept complaining about incompatible memory models. :-(

  • Last time I tried that (v6.something), it didn't work. :-(
    The Linker just kept complaining about incompatible memory models. :-(


    You must also create function prototypes with the memory model specified. For example:

    int junk (
      int a,
      int b,
      int c) large;

    Prototypes a large model function. If you do not specify the memory model in the prototype, the function is assumed to use the default memory model.

    Jon