[comp.sys.transputer] DGEN: Automatic Debugging Configurations

jipping@cs.hope.edu (Mike Jipping) (03/16/91)

A few weeks ago, Andy Rabagliati posted the sources to "check": a set of
programs to configure TRAMs.  Now, we use "check" -- and it's INMOS
Toolset form, "ispy -- for TRAM configuration.  BUT...while I find its
output readable, I cannot get reconfiguration correct!  This is
especially pertinent when I want to reconfigure the TRAMs for interactive
debugging...you have to insert a new root node and shift the original
configuration "down one TRAM" for interactive debugging to work.  A royal
pain in the BUTT!

Thus, I offer "dgen".  "dgen" is a utility for rewriting a "check" TRAM
configuration file to allow a extra TRAM inserted at the root.  When
check is called with the new configuration file, the resulting
configuration is now ready for interactive debugging with "idebug".

An example -->

   Assuming "foo.btl" for a bootable Transputer program, and "foo.cfg"
   for the "check" configuration file, one would run the program like
 
       check -cs <foo.cfg
       iserver -sb foo.btl

   Now, let's assume there's an error in foo.btl.  Once "foo.btl" has
   been respecified to use proper links, "dgen" is used here to
   reconfigure the TRAMs for debugging, like so:

       dgen <foo.cfg | check -cs
       idebug foo.btl -b 2 -as

   No rewriting of the hardware configuration file is needed.

In version 1.0, "dgen" has been tested and runs on Suns, specifically,
Sun-4 machines running SunOS 4.1 or after.  We have B014 motherboards and
use the INMOS S514 B014 device driver.  The versions of "check" used are
"check" version 2.52 or later and "ispy" version 2.31.

This code is available for anonymous FTP from smaug.cs.hope.edu
(35.197.146.1) as "pub/dgen-1.0.tar.Z".  It's very small (~10K).
Remember to set binary mode.  Uncompress, then untar, to get the source
distribution. 

This code is provided with no warranty and no guarentees.  Please send
bug reports and comments to "jipping@cs.hope.edu".  I'll at least read
'em :-)!  I may even use 'em!

      Mike Jipping
      Hope College Department of Computer Science
      jipping@cs.hope.edu  (BITNET: JIPPING@HOPE)

      "If is was so, it might be, and if it were so, it would be.
       But as it isn't, it ain't.  That's logic."
                                              -- Lewis Carroll