MAGIC Magic Mailing List
 
 

From: R. Timothy Edwards (tim AT stravinsky DOT jhuapl.edu)
Date: Thu Aug 29 2002 - 14:58:37 EDT

  • Next message: Patrick Hekeno: "FreeBSD 4.6 and Magic 7.1, "gmake[2]: *** [signals.o] Error 1""

    To all:
    
    I have rewritten a lot of the technology file code in magic-7.2, so
    that magic is able to re-read sections of the technology file at any
    time, not just at startup.  This allowed me to have only one structure
    each for CIF input style, output style, and extract style, three big
    memory hogs.  Magic keeps only the names of the styles in the
    technology file, and reads news styles from the tech file as needed
    (which doesn't happen often).  Combined with replacing a static array
    in the CIF style structure with a dynamically-allocated array, the
    total memory overhead for magic dropped from 120MB to 27MB!  I could
    reduce it further with more static->dynamic memory allocation changes,
    but the programming effort per megabyte increases rapidly as the
    memory overhead shrinks.
    
    I can probably go back to running magic on my poor old laptop now.
    
    The source with these changes can be found, as usual, at:
    
         http://bach.ece.jhu.edu/~tim/programs/magic/magic7.html
    
    At some point, I'd like to make a fairly simple extension to the
    code changes mentioned above which would allow a different techfile
    to be loaded after startup, and automatically load a techfile
    specified by a layout instead of just complaining about it, a
    behavior I've been annoyed by for years.
    
    						---Tim
    


  •  
     
    Questions? Contact Rajit Manohar
    cornell logo