[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
research-article

A visual simulator for a modified p-machine

Published: 01 April 2015 Publication History

Abstract

A discussion of the concepts of programming languages plays an important role in many computer science programs of study. The implementation of a programming language is a topic studied in a programming languages course. The P-Machine is a virtual machine designed by N. Wirth and serves as an example of how a program executes [1]. We present an overview of the P-Machine and a visual simulation of an example program that allows the viewer to follow the execution of the program. Our example program implements a function that finds the greatest common divisor (GCD). The example illustrates how activation records are created and reclaimed. Non-local storage access is also clearly illustrated in our example. The viewer is presented with an archetypical model of program execution that will enhance his or her understanding of this aspect of programming languages.

References

[1]
Pemberton, S., Daniels, M. C. Pascal Implementation, New York: Halsted Press, A division of John Wiley & Sons, 1982.
[2]
Fowler, Michael, "Rutherford Scattering" Lecture notes for Physics 252, University of Virginia. http://galileo.phys.virginia.edu/classes/252/Rutherford_Scattering/Rutherford_Scattering.html, retrieved Oct 14, 2014.
[3]
Altarawneh, R, Humayouna, S. R., Two-Perspective Visualization Approach for Utilizing Visualization Power in Computer Science Education, Proceedings of the 3rd Conference on Computer Science Education Research. 85--91, 2013.
[4]
Sorva, J., Karavita, V., Malmi, L. A Review of Generic Program Visualization Systems for Introductory Programming Education, ACM Transactions on Computing Education, 13 (4), 2013.
[5]
Wirth, N., Pascal-S: A Subset and its Implementation, Pascal Implementation, ed. D. W. Barron. Chichester: John Wiley & Sons, 1982.

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image Journal of Computing Sciences in Colleges
Journal of Computing Sciences in Colleges  Volume 30, Issue 4
April 2015
115 pages
ISSN:1937-4771
EISSN:1937-4763
Issue’s Table of Contents

Publisher

Consortium for Computing Sciences in Colleges

Evansville, IN, United States

Publication History

Published: 01 April 2015
Published in JCSC Volume 30, Issue 4

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 48
    Total Downloads
  • Downloads (Last 12 months)3
  • Downloads (Last 6 weeks)0
Reflects downloads up to 06 Jan 2025

Other Metrics

Citations

View Options

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media