Re: How to Print a Memory Map

From: Appert, Kevin <kevin.appert_at_lmco.com>
Date: Tue, 23 Mar 2010 13:41:16 -0600

     Utilizing the three guiding principles, I would modify the 'master' word that allocates RAM to print out the current pointer and the name of the word currently being defined then log the console to a file during compilation. If you have your application factored into a number of files, it may be enough to print out the pointer and filename at the beginning (or even the end) of each file. This can just be a line of immediate code pasted into the file, perhaps turned on and off with conditional compilation.

     I think it's easier to do it at compile time than to try to walk the dictionary and figure it out after the fact.

-----Original Message-----
From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com] On Behalf Of Wormsley, Jeffrey A. (Jeff)
Sent: Tuesday, March 23, 2010 11:44 AM
To: swiftx_at_forth.com
Subject: [swiftx] How to Print a Memory Map

Is there a way to get a map of what RAM memory locations are referenced
by what VARIABLE, BUFFER, CELL, etc allocations in UDATA (my CPU doesn't
have IDATA)? I've ran out of RAM and need to figure out what is being
allocated but not used, or has been allocated too much. Unfortunately,
there's no equivalent of STRIP for RAM (that I know of).

Thanks,

  Jeff.

**************************************

Jeffrey A. Wormsley

Applications Engineer

Heartland MicroPayments, Inc.

2115 Chapman Rd

Suite 159

Chattanooga, TN 37421

(423) 894-6177 ext 6233

**************************************

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Tue Mar 23 2010 - 12:44:15 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 06-Feb-2012. Archive updated nightly.