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

Dual reentrancy models?

It's getting kind of quiet here so I'll throw one out...

It appears to me that one could run both reentrancy models (small using IDATA and large using XDATA) simultaneously. To what benefit I'm not sure but it'd be one way to get recursion/reentrancy support without forcing all functions into the large model.

I could imagine your small fast oft called leaf functions get compiled as non-reentrant small (if not really reentrant), your reentrant functions shared by ISR's and background tasks in the reentrant small model, and your big fat worker tasks in the reentrant large model.

What say you?

- Mark

Parents
  • You could do that. There may be a side-effect that more DATA memory gets used because arguments and variables can't get overlaid.

    But, if you're so far into it that you need 2 reentrant models becuase you're tuning a system, that's probably long since become a non-issue.

    Keil Support

Reply
  • You could do that. There may be a side-effect that more DATA memory gets used because arguments and variables can't get overlaid.

    But, if you're so far into it that you need 2 reentrant models becuase you're tuning a system, that's probably long since become a non-issue.

    Keil Support

Children