flâneur — a map of the web's best reading

CS107 Lab 7: Optimizing, Profiling, and Ethics

web.stanford.edu · 2,111 words · saved by 1 readers

This lab is designed to give you a chance to explore how to analyze the efficiency of C programs, useful for making your heap allocator as fast and efficient as possible, and also to pull together various ethical concepts from the quarter in discussions with your labmates. Specifically, you will: This is the last CS107 lab of the quarter! Clone the repo by using the command below to create a lab7 directory containing the project files. Next, pull up the online lab checkoff and have it open in a browser so you can jot things down as you go. Only one checkoff needs to submitted for both you and your partner. Learning Goals: Become familiar with using callgrind to measure instruction counts and observe the efficiencies of different implementations of various functions. Callgrind will be a useful tool on the next assignment to optimize your heap allocators! Starter code files: trials.c and copy.c Callgrind, a part of the Valgrind suite of tools, is a profiler, a developer tool that observ

CS107 Lab 7: Optimizing, Profiling, and Ethics Lab 7: Optimizing, Profiling, and Ethics --> Lab sessions Wed Nov 30 to Mon Dec 05 Lab written by Julie Zelenski, with modifications by Nick Troccoli and Kathleen Creel Learning Goals This lab is designed to give you a chance to explore how to analyze the efficiency of C programs, useful for making your heap allocator as fast and efficient as possible, and also to pull together various ethical concepts from the quarter in discussions with your labmates. Specifically, you will: experiment with different mechanisms for execution timing run a profile

Explore this link on the map →

related reading