Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSCE 3600 EXAM QUESTIONS AND ANSWERS LATEST UPDATE (ALREADY GRADED A+)

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
20-02-2025
Written in
2024/2025

CSCE 3600 EXAM QUESTIONS AND ANSWERS LATEST UPDATE (ALREADY GRADED A+) Global Transformation Applied over large segments like loops or functions, requires more analysis. Compile Time Evaluation (constant folding) 3 + 8 turns into 11 Dead code elimination comments and other things that aren't used go away Elimination of common sub-expressions if something is used a lot, then make a variable that is equal to that math, and use that instead of the big one. Frequency reduction move something out of a loop, that is invarient Strength Reduction a * 4 becomes a + a + a + a or a 2 Lazy Swapper Pager - tell me when you need it and I'll give it to you Lexical Analysis Identify the lexical units in a source statement Classify units into different lexical Classes (constants, reserved words) and enter them into different tables. build tokens for each lexical unit ignore comments in the source program detect tokens which are not a part of the language Token a symbol representing something Regular expressions (0|1) 11 (0|1) Syntax analyzer (parser) groups sequences of tokens into phrases obtains tokens from the lexical analyzer checks whether the expression is systactically correct report syntax errors determine the statement class (if, else) group tokens into statements parse trees breaks statements into trees where the phrase is represented. recursive descent parser built from CFG Profiler instrumentation modifies binary, inserting probes at function entry/exit to collect performance data ever step while program running Profiler sampling takes statistical samples of application performance Semantic Analizer determines if the symbol table and the parse tree has a well-defined meaning mainly concerned with TYPE CHECKING and TYPE COERCION based on TYPE RULES Symbol Table built and maintained by the semantic analyzer maps each identifyer to information known (type, internal structure, scope) semantic analyzer uses this to enforce a large variety of rules provides quick and uniform access to identifier attributes throughout compilation type coercion changing the data type of an object with similar content (changing "5" to int 5 or doub 5) type Checking semantic error where the type is wrong Lexemes Sequence of characters that match a pattern Syntax errors errors in the program text lexical error

Show more Read less
Institution
Course

Content preview

CSCE 3600 EXAM QUESTIONS AND ANSWERS
LATEST UPDATE (ALREADY GRADED A+)
Global Transformation

Applied over large segments like loops or functions, requires more analysis.

Compile Time Evaluation (constant folding)

3 + 8 turns into 11

Dead code elimination

comments and other things that aren't used go away

Elimination of common sub-expressions

if something is used a lot, then make a variable that is equal to that math, and use that instead of the big
one.

Frequency reduction

move something out of a loop, that is invarient

Strength Reduction

a * 4 becomes a + a + a + a or a << 2

Lazy Swapper

Pager - tell me when you need it and I'll give it to you

Lexical Analysis

Identify the lexical units in a source statement
Classify units into different lexical Classes (constants, reserved words) and enter them into different
tables.
build tokens for each lexical unit
ignore comments in the source program
detect tokens which are not a part of the language

Token

a symbol representing something

Regular expressions

(0|1) 11 (0|1)

Syntax analyzer (parser)

, groups sequences of tokens into phrases
obtains tokens from the lexical analyzer
checks whether the expression is systactically correct
report syntax errors
determine the statement class (if, else)
group tokens into statements

parse trees

breaks statements into trees where the phrase is represented.

recursive descent parser

built from CFG

Profiler instrumentation

modifies binary, inserting probes at function entry/exit to collect performance data ever step while
program running

Profiler sampling

takes statistical samples of application performance

Semantic Analizer

determines if the symbol table and the parse tree has a well-defined meaning
mainly concerned with TYPE CHECKING and TYPE COERCION based on TYPE RULES

Symbol Table

built and maintained by the semantic analyzer
maps each identifyer to information known (type, internal structure, scope)
semantic analyzer uses this to enforce a large variety of rules
provides quick and uniform access to identifier attributes throughout compilation

type coercion

changing the data type of an object with similar content (changing "5" to int 5 or doub 5)

type Checking

semantic error where the type is wrong

Lexemes

Sequence of characters that match a pattern

Syntax errors

errors in the program text

lexical error

Written for

Course

Document information

Uploaded on
February 20, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
SOLUTIONSCORE School of Pharmacy
Follow You need to be logged in order to follow users or courses
Sold
13
Member since
1 year
Number of followers
4
Documents
1742
Last sold
5 months ago
SOLUTIONSCORE

I Focus on creating high-quality, well-organized documents that accurately reflect the course content. I'm passionate about helping others succeed in their studies, and I create comprehensive summaries, study guides,Questions and answers and flashcards based on my class notes and lectures. My materials are designed to be clear, concise, and effective, so you can focus on understanding the material and ace your exams! Feel free to message me if you have any questions.

Read more Read less
4.9

295 reviews

5
268
4
26
3
1
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions