Menu

Have a suggestion regarding memory allocation

2009-08-04
2013-05-30
  • Nobody/Anonymous

    I am using a 12F device.  I am very glad you changed the memory allocation to move sysw and sysstatus to top memory to work in the interrrupt.  I am not sure why you allocate more variables to the upper 16 bytes though.  In my case using debug, the debug code uses addresses 101 to 112.  The lower end is ok, I just can't allocate too many variables.  But you allocate address 112 to usually DELAYTEMP, etc, in my example.  I must then manually move this (and possible others) to another address manually.

    Could you say why you allocate more than sysw and sysstatus to the upper 16 bytes, or change things to not allocate registers for debugging?  Moving all except sysw and sysstatus to lower memory should do it.  Many thanks for your efforts.

     
    • Nobody/Anonymous

      Working with it some more, memory allocation looks like quite a complex mess looking at all the variations across pics and debuggers.  The new allocation scheme is better, as interrupts will work without edits now.  I can deal with moving a couple variables when debugging.

      I am thinking it best, though, to only put sysw on top and the rest in numeric order.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.