Category: Little Man Computer

  • Profiling LMC Assembly Code

    Profiling LMC Assembly Code

    What is Profiling? Profiling is measuring the performance of code, whether it is a small function or an entire application. You can determine how quickly the code will execute various requests and tune them to meet your needs. Cycle Counts The Little Man Computer is easy to do math on, it is 1:1 — one…

  • Little Man Computer – Execution

    Little Man Computer – Execution

    So far, we’ve learned about the Little Man Computer architecture and how to write a simple program and assemble it into machine code. You likely already know how the code is executed due to the high quality comments I’ve included in that blog. Regardless, I built a simulator and spent quite a bit of time…

  • Little Man Computer — Assembly Code

    Little Man Computer — Assembly Code

    Cover photo isn’t related, but it’s almost as interesting as my post. Machine Code vs. Assembly Code You’ll often hear these two terms used interchangeably, but they are not the same. People will often state that machine code is the actual “0’s” and “1’s” a machine executes, and that’s pretty close to being correct. People…

  • Little Man Computer – Architecture

    Little Man Computer – Architecture

    Around a year ago, I built and threw a Little Man Computer (“LMC”) simulator, assembler, and a really crappy disassembler and put them up on GitHub. There’s another version in C++ up there as well, but it isn’t as fully built out or stable. “Computer Science” in my high school days consisted of keyboarding and…