HP3000-L Archives

June 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Sieler <[log in to unmask]>
Reply To:
Stan Sieler <[log in to unmask]>
Date:
Mon, 21 Jun 1999 14:35:54 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (65 lines)
Re:

> Stan notes two ways of adding PM cap to a program:  Lund's "acap" program
> (snipped here) and MPE's LinkEdit:
...
> > Wouldn't surprise me to find that MPEX can also do this.
>
> But of course:
>
>     %altfile lza; cap=+PM

Good.  I knew it would get into MPEX eventually.  Back when I wrote ACAP,
it (ACAP) was the only program that knew the NMPRG layout.


For the curious:

   :debug
   symopen symos.osc05.telesup   (or whatever group your SYMOS is in)

   map lzw   (where LZW is the program file)

   var lzwaddr 1234.0    (where 1234.0 is the virtual address displayed
                          by the map command)

   fv lzwaddr "lst_header.AUX_LOC"

4c      (seems to always be $4c)

   fv lzwaddr + 4c "HPE_PROG_AUX_HDR"

CRUNCHED RECORD
   HEADER_ID      :
      MANDATORY : FALSE
      COPY      : FALSE
      APPEND    : FALSE
      IGNORE    : FALSE
      RESERVED  : 0
      AUX_TYPE  : 7
      LENGTH    : 1c
   ENTRY_NAME     : 0
   UNSAT_NAME     : 0
   SEARCH_LIST    : 0
   CAPABILITIES   : 183
   MAX_STACK_SIZE : 989680
   MAX_HEAP_SIZE  : f5000
   RESERVED       : 0
   POSIX          : FALSE
   MAX_PRIORITY   : 0
   PRIORITY       : 0
END


   unmap 1    (the file that you mapped, above)
   c

In the above output, the max_stack_size is 10000000 ($989680).

The capability mask is $183...I'll leave that as an exercise for the reader.
(Hint: SYMLIST CAP_@)

--
Stan Sieler                                          [log in to unmask]
                                         http://www.allegro.com/sieler/

ATOM RSS1 RSS2