Memory model - looking for example or shared code

In reply to Michael54:

Hi Michael, this might be a starting point: