Go to the first, previous, next, last section, table of contents.


programCounterToLineNumber

Function: programCounterToLineNumber { pc fn -> line-number }
file: job.t
package: muf
status: alpha

This function converts an integer program counter value (typically obtained via getStackframe[ as the :programCounter value in a :normal stackframe) to the corresponding source code line number for the function.

Note that by convention, these line numbers start at zero for the first line in the function: Users normally expect line numbers to start at one, so it is normal to add one before displaying this value.

If line number relative to the source file as a whole is desired, fun$s.fileLine should be added also.

See section getStackframe[. See section assembler functions.


Go to the first, previous, next, last section, table of contents.