Mops Exam 2 Review PDF

Document Details

PlushPhotorealism

Uploaded by PlushPhotorealism

Rochester Institute of Technology

Tags

compiler components assembly language computer science binary translation

Summary

This document appears to be study notes or review materials for an exam on computer science, specifically covering compiler components and binary translation. It outlines stages like lexical analysis, syntax analysis, and code generation, demonstrating the processes of compiling a source code into machine code. The document also includes examples on binary translation.

Full Transcript

Assembly Token Stream ex. Syntax Tree (x2) Semantic Analyzer Intermediate Code (x2) Source Code Lexical Analyzer Token Stream Code Optimizer Linker Lexical Analyzer Code Generator Assembler Source Program ROM Load Modules Syntax Analyzer Loader Intermediate Code Generator...

Assembly Token Stream ex. Syntax Tree (x2) Semantic Analyzer Intermediate Code (x2) Source Code Lexical Analyzer Token Stream Code Optimizer Linker Lexical Analyzer Code Generator Assembler Source Program ROM Load Modules Syntax Analyzer Loader Intermediate Code Generator Source Lexical Token Syntax Syntax Semantic Code Analyzer Stream Analyzer Tree Analyzer Syntax Intermediate Intermediate Code Intermediate Tree Code Generator Code Optimizer Code Code Assembly Assembler ROM Linker Generator Executable Loader Load Module ArrayList.h Translate to Binary char a = -128; char b = -67; short c = 128; unsigned char c = 128; short e = - 67; short e = 67; Translate to Binary char a = -128 1000 0000 char b = -67 1011 1101 short c = 128 0000 0000 1000 0000 unsigned char c = 128 1000 0000 short e = - 67 1111 1111 1011 1101 short e = 67 0000 0000 0100 0011

Use Quizgecko on...
Browser
Browser