Activity 01
Pairs Challenge: Parallel Code Writing
Pairs write a simple program to calculate factorials in both assembly (using an emulator like MARS) and Python. They run both, measure execution time and memory use, then discuss differences. Extend by modifying for larger inputs.
Why do we still use low level languages for embedded systems despite the complexity?
Facilitation TipDuring Pairs Challenge: Parallel Code Writing, pair students with contrasting prior experiences to encourage detailed explanations of their code choices.
What to look forPresent students with short code snippets, one in Python and one in conceptual assembly (e.g., MOV, ADD, JMP). Ask them to identify which is which and explain one key difference in how they handle data or control flow. For example: 'Which snippet requires explicit register management, and why?'