Skip to main content

Program analysis in Programming Languages


Program analysis refers to the problem of static prediction of the properties of the dynamic performances of the program. There are different type based analyses.
·         Lexical analysis: Lexical analysis of phrases of different languages can be handled automatically using dictionaries and parallel compilation, by request translation regular semantic knowledge of the source and target language, especially when a word in the source sentence unusual, unclear or unknown to the translator, we can still make use of natural language understanding to distract the rest of the terms of use of the word and attempt to analyze because lexical relations.
·         Syntax Analysis: Syntactic aspects of the language that we cover how to construct correct sentences and shallow rules governing the organization, namely with regard to grammar and the architectural relationships between words.
·        Semantic Analysis:
Semantic analysis is to provide the task acknowledgment and statements of a semantically correct program i.e. their meaning is clear and consistent the manner in which data and control structures species however is to be used. Semantic analysis typically includes:
Type of control:  Type Verification is the process of verifying that any operation carried out in a program the type of system respects the language. Data types are used in a way that is consistent with its meaning. Only compatible data types but the task specified for them and so on.
Label Inspection:  A reference label program should exist.
Flow control checks:  Control structures should be used correctly.
Static vs. Dynamic Semantics
Static semantics of a language is indirect refers to the importance of programs during implementation. The name comes from the fact that specifications can be checked at compile time. Static type checking is done at compile time. The information on the type checker is needed obtained by declarations and stored in a master symbol table. When this information collected is checked involved in each type of operation.
Dynamic Semantics refers under expressions, statements and other program units. In contrast to the static semantics, they can’t be controlled at compile time and can only be checked runtime. Dynamic type control is carried out by recording the types of information for each data location during execution.

Comments

Popular posts from this blog

How to set up a passkey for your Apple account

  Passkeys are a new and more secure way to sign in to your Apple account. They are similar to passwords, but they are stored on your device and are not shared with Apple. This makes them more resistant to phishing attacks and other security threats. Passkeys are currently not available for Apple accounts. However, they are expected to be available in a future software update. Set up a passkey for Apple account When passkeys are available, you will be able to set up a passkey for your Apple account by following these steps: 1.     Go to the Settings app on your Apple device. 2.     Tap on your name at the top of the screen. 3.     Tap on "Password & Security." 4.     Tap on "Passkeys." 5.     Tap on "Set Up Passkey." 6.     Follow the on-screen instructions to create a passkey. Once you have created a passkey, you will be able to use it to sign in to your Apple account on...

Requirement for connecting to the Internet

The basic requirements for connecting to the Internet are a computer device. In addition,   you need the following things, to connect to the Internet: (i)           Modem (ii)          Telephone wire (iii)         Internet Service Provider (ISP) (iv)        Internet connection (v)         Web-browsing software Modem (modulator-demodulator) A modem is a device that enables a computer to transmit data over telephone or cable lines. Computer stored information digitally; information transmitted over telephone lines in the form of analog waves. A modem converts between these two forms. A modem can be either internal or external. The internal modem is attached to a slot on the motherboard. The external modem can be placed anywhere outside the system unit and connected to the ...

Approaches of comparative education

  Apollo (1986) identified eight approaches to the study of Comparative Education. They are: 1. Problem Approach or Thematic approach 2. Case study approach 3. Area study approach 4. Historical approach 5. Descriptive approach  6. Philosophical approach  7. International approach and 8.  Gastronomic approach 1. Problem approach or thematic approach —   In this approach the investigator will first of all identify a particular educational problem in his own country. Then, he will begin to look for another country that has the same problem . —   The researcher will also study the education problem of another country in relation to their culture. The researcher will not only study the educational problem of another country but he will also examine the solution applied to such problem by the affected country . 2. Case study approach   —   In this approach, an education comparativist from Nigeria can go to Iraq to study the...