answersLogoWhite

0


Best Answer

Static analysis can be seen as a stricter check of syntax made by an advanced compiler (that will not produce binary code but error messages).

Dynamic analysis is a specific analysis done when the program is actually running. Thins kind of analysis, being done at runtime, can detect specific behaviors, like accessing deallocated memory, leaking memory, time spent in functions and so on.

To put it roughly, is static analysis is advanced compilation, dynamic analysis is a particular form of testing that often requires your program to be "instrumented" for it (i.e., modified at the binary level).

In Xcode, dynamic analysis is available through Instruments. You can found more information about it by googling for "xcode instruments tutorial".

In short, you can run your program under dynamic analysis choosing "Running with Performance Tool" and choosing the kind of analysis you want to perform (memory leaks, memory allocation, performance, Zombies, etc.). Instruments will show you in a graphical environment how memory usage evolves, or how long it takes for specific functions to perform, etc.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between Static analysis and Dynamic analysis?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference between dynamic analysis and static analysis of mechanical design?

k


What are the difference between swot analysis and tows?

Tows matrix dynamic and Swot matrix static.


What are the difference between swot analysis and tows matrix?

Tows matrix dynamic and Swot matrix static.


Differentiate between static and dynamic systems in linear system analysis?

If a system is static then it will be known as STATIC SYSTEM and if it is not static then its a common sense that it will be a DYNAMIC SYSTEM.


What is the difference between static and dynamic fighting?

Static stays the same and dynamic is always different.


What is Difference between static and dynamic list?

A static one cannot change, while a dynamic one can.


What is static code analysis used for?

The static code analysis is used for the analysis of computer software such as video games and programs like Microsoft Word or Photoshop. The difference between this and Dynamic Analysis is that this is performed without it actually executing/starting the program up.


What is the difference between static pressure and dynamic pressure?

The main difference of static pressure and dynamic pressure is:- static pressure is exerted by fluid at rest but dynamic pressure is pressure exerted by fluid in motion.


What is the general difference between a static IP and a dynamic IP?

The general difference between a static IP and dynamic IP is that a static IP is reserved and does not change. A dynamic IP on the other hand changes each time one logs on.


What are the difference between static and dynamic hashing in DBMS?

Search operation in static hashing is time consuming, but in dynamic hashing it is not.


What is the difference between dynamic torque and static torque ratings?

One difference between dynamic torque and static torque is the level of difficulty to measure. Static torque is each to measure, while dynamic torque is not. This is because it requires a transfer of an electric or magnetic effect.


Difference between static multiplier dynamic multiplier?

Type your answer here...