My query is on the below program with respect to symbols that are storing values and functions, when ran on http://pythontutor.com/.
My question is:
How does python execution model look for above program on memory before start interpreting the python program? How do i visualise that memory layout? for example c executable has code/stack/heap/extra/data segments, just as an example, am not comparing
Is 'const' a name of 32/64 bit memory area storing the value 2 with type assigned as integer?
add()/sub()/other functions are shown in Objects column as per the diagram, So, How do i perceive functions being stored as Objects? How do i visualise it?
As per the diagram, Is op a function pointer pointing to function sub()?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…