COMP 206 Lecture Notes - Lecture 10: Internet Information Services, United Farm Workers, Dynamic Html
Document Summary
Python efficiency: interpreter adds overhead, it has to do a lot of work, types checked at run-time, dynamic size re-allocation, important to be away & optimize, python programs often end up running slower than c. Python profiler: useful way to get feedback on how to speed-up basic python. When python isn"t fast enough: many options to mix fast c routines with larger python programs, ctypes and cython. Background: structure of a c program: so far we"ve seen c code compiled to runnable programs (e. g. , a. out) Elf header: 64 v 32 bit, endianess. Is it a proper program for the operating system: application binary interface (abi, re-locatable, runnable, ect, instruction set (x86, arm ect) Is it able to run on my laptop: entry point (cid:0) where the program starts. Address inside binary file that says here is where you should start running: index into remainder of the file.