Changeset 14765


Ignore:
Timestamp:
May 1, 2011, 5:14:20 AM (14 years ago)
Author:
Gary Byers
Message:

Print the relative PC every few instructions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/compiler/ARM/arm-disassemble.lisp

    r14119 r14765  
    384384  (let* ((adi-vector (process-adi-vector (make-adi-vector (uvref xfunction 1))))
    385385         (functionp (typep xfunction 'function)) ;not cross-compiling
    386          (previous-source-note nil))
     386         (previous-source-note nil)
     387         (pc-counter 0))
    387388    (labels ((format-spname (name stream)
    388389               (let* ((string (string name))
     
    419420                             (string-sans-most-whitespace source-text 100)
    420421                             "#<no source text>")))
    421                 (format stream "~&~%;;; ~A" text)))))
     422                (format stream "~&~%;;; ~A" text)
     423                (setq pc-counter 3)))))
    422424        (let* ((info (svref adi-vector i))
    423425               (labeled (adi-labeled info)))
    424426          (when labeled
     427            (setq pc-counter 0)
    425428            (if (eq t labeled)
    426429              (format stream "~&L~d~&" (ash i 2))
     
    486489                (dolist (op (adi-operands info))
    487490                  (format-operand op))
    488                 (write-char #\) stream)))))))))
     491                (write-char #\) stream)
     492                (when (eql (incf pc-counter) 4)
     493                  (setq pc-counter 0)
     494                  (format stream "~40t;[~d]" (* i 4)))))))))))
    489495
    490496                             
Note: See TracChangeset for help on using the changeset viewer.