1) Scripting vs Programming
Scripting languages: JavaScript, PHP, Python
-> interpreted, do not require compilation
-> Slower generally
Programming Languages: C, C++, Java
-> Compiled
-> Faster generally
In the classification, the environment is more important than the language.
-> We can write C interpreter and use it as a scripting language
2) Imperative Language
Uses a seq of statements to reach a certain goal.
Each statement change the state of the program as it is executed in turn
3) Procedural Language
Type of programming language that specifies a series of well-structured steps and procedures within its programming context to compose a program. Contains a systematic order of statements, functuons and commands to complete a task.
C is an example of both 2) and 3)
4) Timeline of execution (C)
- Editor
Source code
- Compiler
Object code
-Linker + fn libraries and other object codes
Executable code
Using the command
gcc -b Helloworld.c
displays all details
5) The computer
This is abstraction.
Next C Prog >
No comments:
Post a Comment