jagomart
digital resources
picture1_Programming Pdf 184073 | Lec10 Item Download 2023-02-01 02-09-02


 132x       Filetype PDF       File size 0.77 MB       Source: personal.utdallas.edu


File: Programming Pdf 184073 | Lec10 Item Download 2023-02-01 02-09-02
the university of texas at dallas erik jonsson school of engineering and computer science assembly language programming remember the programmer shown in our first lecture originally computers were programmed manually ...

icon picture PDF Filetype PDF | Posted on 01 Feb 2023 | 2 years ago
Partial capture of text on file.
            The University of Texas at Dallas                    Erik Jonsson School of Engineering and 
                                                                           Computer Science 
                        Assembly Language Programming 
          •   Remember the 
              “programmer” shown 
              in our first lecture? 
          •   Originally, computers 
              were programmed 
              manually.  
          •   After a while, scientists 
              began to consider ways 
              to accelerate and 
              facilitate programming.  
    1                              Lecture #10:  Programming Fundamentals                   © N. B. Dodge 8/17 
          The University of Texas at Dallas           Erik Jonsson School of Engineering and 
                                                               Computer Science 
                 Assembly Language Programming 
       •  Assemblers were the first programs to assist in programming.   
       •  The idea of the assembler is simple:  represent each computer 
          instruction with an acronym (group of letters).  Eg: “add” for the 
          computer add instruction.   
       •  The programmer writes programs using the acronyms.   
       •  The assembler converts acronyms to binary codes that the computer 
          recognizes as instructions.   
       •  Since most computer instructions are complex combinations of bits 
          (as we will see in the next lecture), assembler programming is easier.   
       •  Assemblers were succeeded by compilers, which are much more 
          sophisticated programming tools.   
       •  A compiler instruction can represent many computer instructions.   
    2                        Lecture #10:  Programming Fundamentals          © N. B. Dodge 8/17 
                The University of Texas at Dallas                                      Erik Jonsson School of Engineering and 
                                                                                                      Computer Science 
                            Why Learn Assembly Language? 
             •     Compilers greatly ease the program development load. Assemblers are 
                   much more primitive. Then why learn assembly language?  
             •     First, compilers remove the visibility of computer operation. 
             •     Second, using assembly language gives a better feel for computer operation.   
             •     Third, learning assembly language aids in understanding computer design.   
             •     Fourth, assembly language improves precision (and reduces size) of 
                   programs.    
              Write program in                                            We will skip this step. 
              compiler language 
              Compile            Resulting assembly language program 
                                 (or write program in assembly language)                                          We will do 
                                      Assemble                  “Object code, ” or machine language               these steps 
                                                                module, with relative memory references 
                                 Link or link edit                     “Object code ” or machine language 
                                                                       with library functions or macros 
                                                         Load              Machine instructions loaded in computer; 
                                                                           absolute memory references 
      3                                         Lecture #10:  Programming Fundamentals                                      © N. B. Dodge 8/17 
          The University of Texas at Dallas              Erik Jonsson School of Engineering and 
                                                                  Computer Science 
                    The MIPS Computer and SPIM 
        •  We will study SPIM, the assembly language of the MIPS computer. 
        •  Patterson and Hennessey, our textbook authors, helped design MIPS.   
        •  The design dates from the 1980’s.  There were several MIPS models.  
           The architecture was very influential – many electronic game systems 
           today employ a descendant of the original MIPS.   
        •  We will study the first MIPS model, the 32-bit MIPS R-2000.   
        •  The assembler/simulator for the MIPS R-2000 is called SPIM.   
        •  We will program using the SPIM assembler/emulator, which can run 
           on your laptop or home computer (the R-2000 no longer exists).   
             – Class instructions will primarily refer to QtSPIM, the PC SPIM 
                assembler/simulator.  SPIM is also available for Mac and Unix.     
            
    4                          Lecture #10:  Programming Fundamentals            © N. B. Dodge 8/17 
The words contained in this file might help you see if this file matches what you are looking for:

...The university of texas at dallas erik jonsson school engineering and computer science assembly language programming remember programmer shown in our first lecture originally computers were programmed manually after a while scientists began to consider ways accelerate facilitate fundamentals n b dodge assemblers programs assist idea assembler is simple represent each instruction with an acronym group letters eg add for writes using acronyms converts binary codes that recognizes as instructions since most are complex combinations bits we will see next easier succeeded by compilers which much more sophisticated tools compiler can many why learn greatly ease program development load primitive then remove visibility operation second gives better feel third learning aids understanding design fourth improves precision reduces size write skip this step compile resulting or do assemble object code machine these steps module relative memory references link edit library functions macros loaded a...

no reviews yet
Please Login to review.