Stan Sieler wrote:
>[Bruce Toback wrote:]
>> Even with symbolic debugging turned on, the running
>> program never has to check for breakpoints; that's done
>> (in effect) by the hardware. When you set a breakpoint in a program, the
>> debugger replaces the first instruction of the statement on which you've
>> set the breakpoint with an illegal instruction.
>
>True...but, "symdebug 'toolset'$ emits breakpoints *into the code stream*.
Sorry -- I assumed XDB, not Toolset. Toolset is much older and uses much
older technology. It requires instrumenting the object code directly.
Using
$SYMDEBUG "XDB"
which generates debug information for the newer (newer to MPE, at least)
XDB, does not result in calls at procedure entry/exit points. The
difference, using Stan's test program, is:
-- Using $symdebug 'toolset'$
looper ( 1000) took 715 CPU, 779 elapsed millisecs
looper ( 10000) took 7101 CPU, 7475 elapsed millisecs
looper ( 100000) took 71019 CPU, 76030 elapsed millisecs
END OF PROGRAM
M5(88):qedit
Qedit/iX. Copyright Robelle Consulting Ltd. 1977-1994. Type ? for
help.
(Version 4.3)
Licensee: OPT, Inc. [19R]
QZMODIFY(iX) Oct 22, 1993 by Stan Sieler. Type ^Q or ^WH for help.
Today's Hint. To invoke part of a file of QEDIT commands, do USE
filename
rangelist (e.g., /use foo 1/10).
/t spastes3
Scratch file
82 lines in file
/m1
1 $symdebug 'xdb'$
/k;e
SPASTES3.PUB.CASEDEV,OLD 80B FA # of records=82
Purge existing file [no]? yes
82 lines saved
END OF PROGRAM
M5(90):pasxlgo spastes3,$null
PAGE 1 HP PASCAL/iX HP31502A.05.02 COPYRIGHT HEWLETT-PACKARD CO.
1986
MON, NOV 29, 1999, 3:00 PM
NUMBER OF ERRORS = 0 NUMBER OF WARNINGS = 0
PROCESSOR TIME 0: 0: 2 ELAPSED TIME 0: 0: 1
NUMBER OF LINES = 82 LINES/MINUTE = 2461.2
NUMBER OF NOTES = 0
END OF COMPILE
HP Link Editor/iX (HP30315A.06.01) Copyright Hewlett-Packard Co 1986
LinkEd> link
END OF LINK
looper ( 1000) took 2 CPU, 2 elapsed millisecs
looper ( 10000) took 18 CPU, 19 elapsed millisecs
looper ( 100000) took 173 CPU, 184 elapsed millisecs
END OF PROGRAM
-------
Since the original post said "symbolic debug" instead of "Toolset", I
assumed XDB.
-- Bruce
--------------------------------------------------------------------------
Bruce Toback Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc. (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142 | But ah, my foes, and oh, my friends -
Phoenix AZ 85028 | It gives a lovely light.
btoback AT optc.com | -- Edna St. Vincent Millay
Mail sent to [log in to unmask] will be inspected for a
fee of US$250. Mailing to said address constitutes agreement to
pay, including collection costs.
|