jagomart
digital resources
picture1_Introduction To Computer Organization And Mips Assembly Language


 154x       Filetype PDF       File size 1.02 MB       Source: staff.emu.edu.tr


File: Introduction To Computer Organization And Mips Assembly Language
introduction to computer organization and mips assembly language part 1 textbook computer organization design the hardware software interface fifth edition 2013 david patterson and john hennessy morgan kaufmann 1 some ...

icon picture PDF Filetype PDF | Posted on 07 Feb 2023 | 2 years ago
Partial capture of text on file.
                                                       Introduction to Computer 
                                                            Organization and MIPS 
                                                                   Assembly Language  
                                                                                      - Part 1 - 
                                                                                       Textbook 
                                     Computer Organization & Design: 
                                          The Hardware/Software Interface 
                                           Fifth Edition, 2013 
                                           David Patterson and John Hennessy 
                                           Morgan Kaufmann 
                                                                                                                                                                                                     1 
                Some Important Questions to Ask 
             What is Assembly Language? 
             What is Machine Language? 
             How is Assembly related to a high-level language? 
             Why Learn Assembly Language? 
             What is an Assembler, Linker, and Debugger? 
                    A Hierarchy of Languages 
                           Application Programs 
                           High-Level Languages 
              Machine independent       High-Level Language 
               Machine specific         Low-Level Language 
                           Assembly Language 
                            Machine Language 
                              Hardware 
                                                              2 
                 Assembly and Machine Language 
            Machine language 
              Native to a processor: executed directly by hardware 
              Instructions consist of binary code: 1s and 0s 
            Assembly language 
              Slightly higher-level language 
              Readability of instructions is better than machine language 
              One-to-one correspondence with machine language instructions 
            Assemblers translate assembly to machine code 
            Compilers translate high-level programs to machine code 
                     Compiler and Assembler 
                                                              3 
                                          Translating Languages 
                         Program (C Language): 
                         swap(int v[], int k) {                         A statement in a high-level 
                           int temp;                                      language is translated 
                           temp = v[k];                                    typically into several 
                           v[k] = v[k+1];                               machine-level instructions 
                           v[k+1] = temp; 
                         }            
                                           Compiler 
                                      
                                       
                                                                      MIPS Machine Language: 
                         MIPS Assembly Language: 
                                       
                                                                      00051080 
                         sll $2,$5, 2                    Assembler    00821020 
                         add $2,$4,$2                                 8C620000 
                         lw  $15,0($2)                                8CF20004 
                         lw  $16,4($2)                                ACF20000 
                         sw  $16,0($2)                                AC620004 
                         sw  $15,4($2)                                03E00008 
                         jr  $31 
                             Advantages of High-Level Languages 
                        Program development is faster 
                            High-level statements: fewer instructions to code 
                        Program maintenance is easier 
                            For the same above reasons 
                        Programs are portable 
                            Contain few machine-dependent details 
                            Compiler translates to the target machine language 
                                                                                                                         4 
The words contained in this file might help you see if this file matches what you are looking for:

...Introduction to computer organization and mips assembly language part textbook design the hardware software interface fifth edition david patterson john hennessy morgan kaufmann some important questions ask what is machine how related a high level why learn an assembler linker debugger hierarchy of languages application programs independent specific low native processor executed directly by instructions consist binary code s slightly higher readability better than one correspondence with assemblers translate compilers compiler translating program c swap int v k statement in temp translated typically into several sll add lw cf acf sw ac e jr advantages development faster statements fewer maintenance easier for same above reasons are portable contain few dependent details translates target...

no reviews yet
Please Login to review.