1 / 17

LOW vs. HIGH Level Languages

LOW vs. HIGH Level Languages. Skill Area 311 Part C. Materials prepared by Dhimas Ruswanto , BMm. Lecture Overview. Definition Low & High Level Language Contrast Low & High Level Language Differences Low & High Level Language : Understandable Ease of writing Running speed

chaka
Télécharger la présentation

LOW vs. HIGH Level Languages

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LOW vs. HIGHLevel Languages Skill Area 311 Part C Materials prepared by DhimasRuswanto, BMm

  2. Lecture Overview • Definition Low & High Level Language • Contrast Low & High Level Language • Differences Low & High Level Language : • Understandable • Ease of writing • Running speed • Writing format

  3. LOW vs. HIGHLevel language

  4. Definition • Low level languages: • Computer language consisting of mnemonics that directly correspond to machine language instructions • High Level Languages: • Basically symbolic languages that use English words and/or mathematical symbols rather than mnemonic codes.

  5. Contrast • Low Level Languages • Very close to machine language • Concentrate on machine architecture • High Level Languages • Machine-independent programming language • Concentrate of the logic of problem

  6. Examples • Low Level Language • Machine language • Assembly language • High Level Language • C • C++ • BASIC • Java

  7. LOW vs. HIGH Level Languages • Differences in terms of: • Understandable • Ease of writing • Running speed • Writing format

  8. Understandable • Low Level Language: • Mnemonic, binary, hexadecimal • High Level Language: • Simple English and mathematics symbols

  9. Adds two numbers and stores the result • Low Level Language: .model small, C .586 .data mov eax,5 mov ebx,10 add eax,ebx end

  10. Adds two numbers and stores the result • High Level Language: int main() { //assign to the variable result the value of 5 + 10 int result = 5 + 10; return 0; )

  11. Ease of Writing • Low Level Language: • Designed for the ease of the computer running the language. • Difficult for human to read and write • High Level Language: • Designed for the ease of the person writing the language. • Using language that human can understand, English

  12. Running Speed • Low Level Language: • Faster • No need to compile • More efficient • High Level Language: • Need compiler or interpreter • Translate into machine code • Lower speed execution

  13. Running Speed (Example) • Low Level Language: 00110100 00100000 00111101 00100000 00110010 00101011 00110010 • High Level Language: 4 = 2+2

  14. Writing Format • Low Level Language: • Set of instructions for processor • High Level Language: • Grammar rules

  15. Hello World! • Low Level Language .MODEL small .STACK 100h .DATA HelloMessage DB ‘Hello, world’, 13,10,’$’ .CODE mov ax,@data mov ds,ax mov ah,9 mov dx,OFFSET HelloMessage int 21h mov ah, 4ch int 21h END

  16. Hello World! • High Level Language #include <stdio.h> int main(void) { printf("Hello World!"); return 0; }

  17. Summary • Low level languages: • Computer language consisting of mnemonics that directly correspond to machine language instructions • High Level Languages: • Basically symbolic languages that use English words and/or mathematical symbols rather than mnemonic codes. • Differences in terms of: • Understandable • Ease of writing • Running speed • Writing format

More Related