(cc'd to gnupic) On Thu, 11 Jan 2001, JB wrote: > Is there a function of MPLAB, or some third-party tool for mapping out which > subroutines use what variables? Another thing I'd like to see is a chart of > what sub calls which other subs. Have not found either as of yet. I'm somewhat reluctant to mention it since it's total vaporware, but as part of the PIC port to SDCC (http://www.dattalo.com/gnupic/sdcc.html) I'll be working on a "post compiler optimizer". It's purpose is to take the assembly output of the SDCC compiler and optimize it. One of the steps will be to generate the call tree. The variable "mapping" as you call it, will also be available. The optimizer will initially be buried in SDCC. However, I intend to design it such that it will also work on a .asm file. In this case, I'll modify gpasm to generate the same information that I'm getting from SDCC. gpasm will provide the syntax checking, macro expansion, etc. So in addition to producing .cod, .hex, and .lst files, gpasm will produce a .opt (or whatever) file that is an optimized .asm file. Scott -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics