Compiler Design Spring 2017
|
|
- Joseph Crawford
- 6 years ago
- Views:
Transcription
1 Compiler Design Spring Software design Dr. Zoltán Majó Compiler Group Java HotSpot Virtual Machine Oracle Corporation 1
2 Code quality What is quality? All exams have high quality. Student: Exam asks questions that check material on the handout. Lecturer: Exam shows that students can apply material to new problem(s). Dean (head of studies): The results follow normal distribution. Provost: Successful students are great ambassadors for the college. Teaching assistant: Exam was multiple choice (and therefore could be graded while watching soccer). 3
3 Quality Need to identify dimensions Need to define low and high marks Without clarification vague Near term goal: code reviews By students Of students code Why? Code reviews are common Code reviews highly effective to improve software systems Other techniques exist as well 4
4 Code quality First focus: software system artifact Source code Documents External characteristics of software system Visible/noticeable by user Internal characteristics of software system Primarily of interest to developer Other aspects: process, environment, 5
5 External characteristics Boundary to internal characteristics not always strict Dimensions are not always mutually exclusive Correctness: freedom from faults Faults in specification Faults in design Faults in implementation Faults in execution Robustness: ability to handle invalid input Useful error messages May have to include handling of hardware faults 6
6 External characteristics (cont d) Usability Serves its purpose Adaptability: system can be used w/o modifications in other scenarios Interoperates with other systems as designed/specified Integrity: prohibit unauthorized/improper access Traceability: completeness of access traces and/or logs Accuracy: results acceptable with regard to quantitative input Could be considered a correctness issue Reliability: system performs under stated conditions 7
7 Internal characteristics Flexibility: system can be modified (with little or no effort) to be used for unintended environments Reusability: system can be used in another operating environment Readability: source code can be understood 8
8 Readability Numerous factors influence readability Consistent style (formatting) Use of white space Use of indentation Tools can help Rules for names, naming conventions Rules for comments Use of language features Choice of programming language(s) Use of assertions Coding conventions Size of functions Use of exceptions File (project) organization/directory structure 9
9 Readability à Understandability System structure Reflects high-level design Modularity Coherence and cohesion Number of interaction points with other modules Number of parameters Control flow Use of exceptions Control/data plane 10
10 Understandability Level required to comprehend system Classes (structs, records) Class hierarchies Depth Frameworks Patterns 11
11 Internal characteristics (cont d) Maintainability: source code can be modified to address changing requirements Improve performance Improve usability Address correctness and security problems Correct defects as well as react to environment changes Testability: Can you unit test the system? How easy it is to verify that the system meets requirements 13
12 public void HandleStuff(CORP_DATA inputrec, int crntqtr, EMP_DATA emprec, double estimrevenue, double ytdrevenue, int screenx, int screeny, COLOR_TYPE newcolor, COLOR_TYPE prevcolor, StatusType status, int expensetype) { int i; for (i = 0; i < 100; i++) { inputrec.revenue[i] = 0; inputrec.expense[i] = MASTER.corpExpense [crntqtr][i]; } MASTER.UpdateCorporateDatabase( emprec ); estimrevenue += ytdrevenue * 4.0 / (double) crntqtr; newcolor.color = prevcolor.color; status.result = Result.SUCCESS; if ( expensetype == 1) { for (i = 0; i < 12; i++) MASTER.profit[i] = inputrec.revenue[i] - MASTER.expense.type1[i]; } else if ( expensetype == 2) { MASTER.profit[i] = inputrec.revenue[i] - MASTER.expense.type2[i]; } else if ( expensetype == 3) MASTER.profit[i] = inputrec.revenue[i] - MASTER.expense.type3[i]; } Adapted from S. McConnell, Code Complete (2 nd Edition) 15
13 16
14 Comments Internal/external characteristics may overlap Correlated, not independent Often no fixed rule on good design Example: size of functions/methods Example: number of method arguments Texts to consider Steve McConnell: Code Complete: A Practical Handbook of Software Construction, Microsoft Press, George A. Miller: The Magical Number Seven, Plus or Minus Two: Some Limits on Our Capacity for Processing Information, The Psychological Review, 1956, vol. 63, pp (on the web) 23
15 Software quality Goal: design & implementation of software systems with desirable internal and external characteristics Desirable: depends on context and objectives Combinations of characteristics Steps to ensure software quality Identify quality dimensions Set priorities Allow (and discuss) tradeoffs Establish objectives Establish ways to measure quality 24
16 Objectives Many possible dimensions Development time and cost Code length Memory usage Execution speed 25
17 Quality assurance Implicit and explicit quality assurance steps Focus here on explicit steps Guidelines for software construction Software process Follow process Testing strategy Informal reviews Formal reviews External audits 26
18 Informal reviews Objective: catch errors early Misuse of informal reviews Assign blame Staff evaluation Budget control Informal 27
19 Informal reviews (cont d) Kinds of informal reviews 1. Inspection Reviewers look at code Reviewers meet developers, ask questions (person-person interaction) 2. Walk-through Presentation of system Guide tour by developer(s) 3. Code reading Feedback via comment, review Usually done by co-developer 28
20 Informal reviews Execution of system, test cases may be part of the review Emphasis usually on understanding source code 29
21 Inspections Participants with clearly defined roles Some roles mutually exclusive 30
22 Roles Moderator Keeps review going Must be technical person Neither reviewer nor developer Author Developed software system under review May start out review with an overview May answer factual questions (if asked) Explain parts Does not defend decision Do not argue Key is to listen, code should speak for itself 31
23 Roles (cont d) Reviewer(s) Find problems Identify defects Find good features Find good uses Scribe Takes notes Record defects, problems Not a reviewer May also be moderator 32
24 Roles (cont d) Management: Absent from inspection Inspection is for developers Objective is not review of developer performance Number of participants At least three: author, reviewer, moderator Moderator and scribe are the same person Large groups more difficult to manage than small ones 33
25 Preparation Planning Code or design delivered to moderator Moderator selects reviewer(s) Setup Overview by developer Danger: developer directs reviewers Preparation Reading of code/design documents Inspection meeting Inspection report 34
26 Follow up Reports state problems Moderators assign defects for repair May be manager maps requests to developers/authors Another inspection Depends on number and severity of defects Keep logs, collect data Number of defects Size of software system Length of meetings Number of reviewers 35
27 Code inspection Well-defined process Even though process is informal Homework C : Participate in inspection process Review other students code Have your code reviewed Details later (not today) Process presented here: A possible way to organize reviews Other processes used in practice A case study: The OpenJDK review process 36
28 OpenJDK Open Java Development Kit Free and open-source implementation of the Java Platform Java Platform Java Class Library E.g., packages like java.lang, java.io, java.math (Static) Java compiler javac Translate Java programs bytecode instructions for Java Virtual Machine HotSpot Java Virtual Machine Just-in-time compilers C1 and C2 (translate bytecode native code) Interpreter (template-based) Runtime system Garbage collectors 37
29 Quality assurance for OpenJDK Quality important Millions of OpenJDK users worldwide Software quality assurance challenging Large codebase: 7 millions of lines of code (Java, C, C++, assembly) Contributors all around the world In different time zones Both within Oracle and outside Oracle (volunteers, SAP, RedHat, Intel) Well-defined code review process helps ensure software quality Reviews informal: management is excluded Other quality assurance methods used as well Only review process discussed today 38
30 Workflow for OpenJDK reviews Step 1: Author develops and tests new code Usually results in a patch to the existing system Step 2: Author uploads patch to review server cr.openjdk.java.net Webrev 39
31 Webrev 40
32 Cdiff 41
33 Workflow for OpenJDK reviews Step 1: Author develops and tests new code Usually results in a patch to the existing system Step 2: Author uploads patch to review server cr.openjdk.java.net Webrev Step 3: Author sends out request for review to a mailing list E.g., hotspot-compiler-dev@openjdk.java.net Usually includes link to webrev, description of problem and solution, testing performed Step 4: Reviewers inspect code, give feedback If changes required, author updates and tests code, continue with Step 2 Otherwise continue with Step 5 Step 5: Code ( change set ) pushed Either by author or by a sponsor 42
34 Change sets Code annotated with a well-formed description Example : Assert fails in deoptimization due to original PC at the end of code section Summary: Change assert to accept end of code section as well. Reviewed-by: rbackman, kvn, dlong Author: zmajo First line: Unique issue ID ( ) to identify problem Reviewed-by statement identifies reviewers Give credit to often non-trivial reviewing effort Reviewers are responsible for havoc if author not available 43
35 OpenJDK review process Is it code inspection, walkthrough, or code reading? A combination of all three It takes elements from each Walkthrough: Author describes problem and solution Code reading: Reviewers look at code independently Enforced also by geographic distribution Feedback given in written form (comments) Code inspection: Well-defined roles and steps 44
36 Roles Code inspection (as described earlier) Management not involved Author Reviewer(s) Selected by moderator Scribe Moderator OpenJDK review process Management not involved Author Reviewer(s) Everybody on mailing list Mailing list Log all conversations No moderation 45
37 (Lack of) moderation Everybody registered on mailing list can review All members have a right to veto Though proper justification is always required Depending on mailing list, 10s or 100s of potential reviewers Making all reviewers happy is sometimes difficult And time consuming Up to 80% of time spent on reviewing Especially if reviewers have conflicting expectations More the case with cross-component changes E.g., core libraries and JIT compilers Sometimes (rarely) consensus is not reached Code thrown away 46
38 Other differences Suggestions for improvement allowed during OpenJDK reviews Not only defect detection OpenJDK defines a hierarchy of roles Contributor Signed Oracle Contributor Agreement Author Person with own username Listed on project website Committer Allowed to also push code Can sponsor change sets Reviewer Allowed to decide if code is good enough 47
39 OpenJDK roles Roles allow fine-grained access control Achieving Reviewer status Requires 32 significant change sets (Author: 2 change sets, Committer: 8 change sets) Through nomination and vote by members All members have the right to veto Significant : another vaguely defined word Sometimes: Number of lines of code pushed Compiler engineer: 1-line change can take weeks to develop 48
40 Code reviews Good way to assure software quality Often well-defined process (rules to follow) Helps people in organization operate on similar level of standard Defining/following rules Incurs (some) overhead Keep to minimum Rules should be guided by objectives that matter Use common sense to find balance 50
CS 240 Final Exam Review
CS 240 Final Exam Review Linux I/O redirection Pipelines Standard commands C++ Pointers How to declare How to use Pointer arithmetic new, delete Memory leaks C++ Parameter Passing modes value pointer reference
More informationBuilding Routines. Quality Routines. Quality Routines. Quality Routines. Quality Routines. Routine. What makes a quality routine
Building Routines Routine individual function or procedure invocable for a single purpose What makes a quality routine easier to see a low quality routine low quality routine coming up Procedure HandleStuff(
More informationSoftware Implementation (Writing Quality Code)
Software Implementation (Writing Quality Code) void HandleStuff( CORP_DATA & inputrec, int crntqtr, EMP_DATA emprec, float & estimrevenue, float ytdrevenue, int screenx, int screeny, COLOR_TYPE & newcolor,
More informationCompiler Design Spring 2017
Compiler Design Spring 2017 7.5 Method invocation Dr. Zoltán Majó Compiler Group Java HotSpot Virtual Machine Oracle Corporation 1 Admin issues There will be a recitation session today In CAB G 11 @ 15:15
More informationWhy testing and analysis. Software Testing. A framework for software testing. Outline. Software Qualities. Dependability Properties
Why testing and analysis Software Testing Adapted from FSE 98 Tutorial by Michal Young and Mauro Pezze Software is never correct no matter what developing testing technique is used All software must be
More informationSoftware Engineering 2 A practical course in software engineering. Ekkart Kindler
Software Engineering 2 A practical course in software engineering Quality Management Main Message Planning phase Definition phase Design phase Implem. phase Acceptance phase Mainten. phase 3 1. Overview
More informationInterface (API) Design
Interface (API) Design Architect s Perspective R. Kuehl/J. Scott Hawker p. 1 What is an API? Exposes the public facing functionality of a software component Operations, inputs, and outputs Exposes functionality
More informationTopics in Software Testing
Dependable Software Systems Topics in Software Testing Material drawn from [Beizer, Sommerville] Software Testing Software testing is a critical element of software quality assurance and represents the
More informationThe OpenJDK Project Past And Present
The OpenJDK Project Past And Present Red Hat Open Source Java Team March 2014 1 Agenda What Is the OpenJDK Project? How Is It Run? How Can I Contribute? Where Now and Next? 2 Agenda What Is the OpenJDK
More informationCS 424 Software Quality Assurance & Testing LECTURE 3 BASIC CONCEPTS OF SOFTWARE TESTING - I
LECTURE 3 BASIC CONCEPTS OF SOFTWARE TESTING - I WHAT IS SOFTWARE TESTING? Testing can find faults in the software but cannot prove that the software is error-free. OBJECTIVES OF SOFTWARE TESTING To test
More informationPeople tell me that testing is
Software Testing Mark Micallef mark.micallef@um.edu.mt People tell me that testing is Boring Not for developers A second class activity Not necessary because they are very good coders 1 What is quality?
More informationSoftware Design Fundamentals. CSCE Lecture 11-09/27/2016
Software Design Fundamentals CSCE 740 - Lecture 11-09/27/2016 Today s Goals Define design Introduce the design process Overview of design criteria What results in a good design? Gregory Gay CSCE 740 -
More informationLecture 19 Engineering Design Resolution: Generating and Evaluating Architectures
Lecture 19 Engineering Design Resolution: Generating and Evaluating Architectures Software Engineering ITCS 3155 Fall 2008 Dr. Jamie Payton Department of Computer Science University of North Carolina at
More informationCollaborative Programming: Pair Programming and Reviews CSE 403
Collaborative Programming: Pair Programming and Reviews CSE 403 Pair programming pair programming: 2 people, 1 computer take turns driving rotate pairs often pair people of different experience levels
More informationVolume II, Section 5 Table of Contents
Volume II, Section 5 Table of Contents 5...5-1 5.1 Scope...5-1 5.2 Basis of...5-1 5.3 Initial Review of Documentation...5-2 5.4 Source Code Review...5-2 5.4.1 Control Constructs...5-3 5.4.1.1 Replacement
More informationWHITE PAPER. 10 Reasons to Use Static Analysis for Embedded Software Development
WHITE PAPER 10 Reasons to Use Static Analysis for Embedded Software Development Overview Software is in everything. And in many embedded systems like flight control, medical devices, and powertrains, quality
More informationLow Level Design Activities. Implementation (Low Level Design) What is a Good Low Level Module? Black Box Aspects. Black box aspects White box aspects
Low Level Design Activities Implementation (Low Level Design) Implement Document Deskcheck Basic Test PVK--HT00 Copyright 1997-1999, jubo@cs.umu.se/epltos@epl.ericsson.se 2 What is a Good Low Level Module?
More informationIt is primarily checking of the code and/or manually reviewing the code or document to find errors This type of testing can be used by the developer
Static testing Static testing is a software testing method that involves examination of the program's code and its associated documentation but does not require the program be executed. Dynamic testing,
More informationTypes. Type checking. Why Do We Need Type Systems? Types and Operations. What is a type? Consensus
Types Type checking What is a type? The notion varies from language to language Consensus A set of values A set of operations on those values Classes are one instantiation of the modern notion of type
More informationCIS 890: Safety Critical Systems
CIS 890: Safety Critical Systems Lecture: Requirements Introduction Copyright 2011, John Hatcliff. The syllabus and all lectures for this course are copyrighted materials and may not be used in other course
More informationSKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG)
SKILL AREA 304: Review Programming Language Concept Computer Programming (YPG) 304.1 Demonstrate an Understanding of Basic of Programming Language 304.1.1 Explain the purpose of computer program 304.1.2
More informationSOFTWARE ENGINEERING. Software Specification Software Design and Implementation Software Validation. Peter Mileff PhD
Peter Mileff PhD SOFTWARE ENGINEERING Software Specification Software Design and Implementation Software Validation University of Miskolc Department of Information Technology Software Specification...
More information1 Visible deviation from the specification or expected behavior for end-user is called: a) an error b) a fault c) a failure d) a defect e) a mistake
Sample ISTQB examination 1 Visible deviation from the specification or expected behavior for end-user is called: a) an error b) a fault c) a failure d) a defect e) a mistake 2 Regression testing should
More informationObject-Oriented Programming for Managers
95-807 Object-Oriented Programming for Managers 12 units Prerequisites: 95-815 Programming Basics is required for students with little or no prior programming coursework or experience. (http://www.andrew.cmu.edu/course/95-815/)
More informationLearning outcomes. Systems Engineering. Debugging Process. Debugging Process. Review
Systems Engineering Lecture 9 System Verification II Dr. Joanna Bryson Dr. Leon Watts University of Bath Department of Computer Science 1 Learning outcomes After both lectures and doing the reading, you
More informationObjectives. Problem Solving. Introduction. An overview of object-oriented concepts. Programming and programming languages An introduction to Java
Introduction Objectives An overview of object-oriented concepts. Programming and programming languages An introduction to Java 1-2 Problem Solving The purpose of writing a program is to solve a problem
More informationCompiler Design Spring 2017
Compiler Design Spring 2017 Patterns (again) Dr. Zoltán Majó Compiler Group Java HotSpot Virtual Machine Oracle Corporation Why? Remember questionnaire (from the beginning of the semester)? Question 7:
More informationChapter 9 Quality and Change Management
MACIASZEK, L.A. (2007): Requirements Analysis and System Design, 3 rd ed. Addison Wesley, Harlow England ISBN 978-0-321-44036-5 Chapter 9 Quality and Change Management Pearson Education Limited 2007 Topics
More informationPart 5. Verification and Validation
Software Engineering Part 5. Verification and Validation - Verification and Validation - Software Testing Ver. 1.7 This lecture note is based on materials from Ian Sommerville 2006. Anyone can use this
More informationQualities of software and its development
1 / 17 Qualities of software and its development Miaoqing Huang University of Arkansas Spring 2010 Representative qualities 2 / 17 Correctness Robustness Performance Usability Maintainability Portability
More informationPearson Education 2007 Chapter 9 (RASD 3/e)
MACIASZEK, L.A. (2007): Requirements Analysis and System Design, 3 rd ed. Addison Wesley, Harlow England ISBN 978-0-321-44036-5 Chapter 9 Quality and Change Management Pearson Education Limited 2007 Topics
More informationHigh-Level Language VMs
High-Level Language VMs Outline Motivation What is the need for HLL VMs? How are these different from System or Process VMs? Approach to HLL VMs Evolutionary history Pascal P-code Object oriented HLL VMs
More informationCompiler Design Spring 2018
Compiler Design Spring 2018 Thomas R. Gross Computer Science Department ETH Zurich, Switzerland 1 Logistics Lecture Tuesdays: 10:15 11:55 Thursdays: 10:15 -- 11:55 In ETF E1 Recitation Announced later
More information1DL321: Kompilatorteknik I (Compiler Design 1) Introduction to Programming Language Design and to Compilation
1DL321: Kompilatorteknik I (Compiler Design 1) Introduction to Programming Language Design and to Compilation Administrivia Lecturer: Kostis Sagonas (kostis@it.uu.se) Course home page: http://www.it.uu.se/edu/course/homepage/komp/h18
More informationTrusted Components. Reuse, Contracts and Patterns. Prof. Dr. Bertrand Meyer Dr. Karine Arnout
1 Last update: 15 October 2004 Trusted Components Reuse, Contracts and Patterns Prof. Dr. Bertrand Meyer Dr. Karine Arnout 2 Lecture 1: Issues of software quality Agenda for today 3 Introduction Some statistics
More information1DL321: Kompilatorteknik I (Compiler Design 1)
Administrivia 1DL321: Kompilatorteknik I (Compiler Design 1) Introduction to Programming Language Design and to Compilation Lecturer: Kostis Sagonas (kostis@it.uu.se) Course home page: http://www.it.uu.se/edu/course/homepage/komp/ht16
More informationCSCI 528: OBJECT ORIENTED PROGRAMMING, Fall 2015
CSCI 528: OBJECT ORIENTED PROGRAMMING, Fall 2015 INSTRUCTOR: Dr. Ray Maleh Adjunct Professor, Department of Computer Science Office: TBD Email: Ray_Maleh@tamuc.edu Office Hours: Mondays 7:10 PM 8:10 PM,
More informationIntroduction to Programming Languages and Compilers. CS164 11:00-12:30 TT 10 Evans. UPRM ICOM 4029 (Adapted from: Prof. Necula UCB CS 164)
Introduction to Programming Languages and Compilers CS164 11:00-12:30 TT 10 Evans 1 ICOM 4036 - Outline Prontuario Course Outline Brief History of PLs Programming Language Design Criteria Programming Language
More informationSoftware Maintenance. Maintenance is Inevitable. Types of Maintenance. Managing the processes of system change
Software Maintenance Managing the processes of system change Maintenance is Inevitable The system requirements are likely to change while the system is being developed because the environment is changing.
More informationSemantic Analysis. Lecture 9. February 7, 2018
Semantic Analysis Lecture 9 February 7, 2018 Midterm 1 Compiler Stages 12 / 14 COOL Programming 10 / 12 Regular Languages 26 / 30 Context-free Languages 17 / 21 Parsing 20 / 23 Extra Credit 4 / 6 Average
More informationAn Introduction to Software Engineering. David Greenstein Monta Vista High School
An Introduction to Software Engineering David Greenstein Monta Vista High School Software Today Software Development Pre-1970 s - Emphasis on efficiency Compact, fast algorithms on machines with limited
More informationStatic Analysis Techniques
oftware Design (F28SD2): Static Analysis Techniques 1 Software Design (F28SD2) Static Analysis Techniques Andrew Ireland School of Mathematical and Computer Science Heriot-Watt University Edinburgh oftware
More informationTesting is a very big and important topic when it comes to software development. Testing has a number of aspects that need to be considered.
Testing Testing is a very big and important topic when it comes to software development. Testing has a number of aspects that need to be considered. System stability is the system going to crash or not?
More informationCOMP 117: Internet-scale Distributed Systems Lessons from the World Wide Web
COMP 117: Internet Scale Distributed Systems (Spring 2018) COMP 117: Internet-scale Distributed Systems Lessons from the World Wide Web Noah Mendelsohn Tufts University Email: noah@cs.tufts.edu Web: http://www.cs.tufts.edu/~noah
More informationSlide 1 Welcome to Fundamentals of Health Workflow Process Analysis and Redesign: Process Mapping: Entity-Relationship Diagrams. This is Lecture e.
WORKFLOW ANALYSIS Audio Transcript Component 10 Unit 3 Lecture E Fundamentals of Health Workflow Process Analysis & Redesign Interpreting and Creating Process Diagrams Process Mapping UML notation for
More informationRequirements Validation and Negotiation
REQUIREMENTS ENGINEERING LECTURE 2015/2016 Eddy Groen Requirements Validation and Negotiation AGENDA Fundamentals of Requirements Validation Fundamentals of Requirements Negotiation Quality Aspects of
More informationCOMP 524 Spring 2018 Midterm Thursday, March 1
Name PID COMP 524 Spring 2018 Midterm Thursday, March 1 This exam is open note, open book and open computer. It is not open people. You are to submit this exam through gradescope. Resubmissions have been
More informationTESTING. Overview Slide 6.2. Testing (contd) Slide 6.4. Testing Slide 6.3. Quality issues Non-execution-based testing
Slide 6.1 Overview Slide 6.2 Quality issues Non-execution-based testing TESTING Execution-based testing What should be tested? Testing versus correctness proofs Who should perform execution-based testing?
More information<Insert Picture Here> OpenJDK - When And How To Contribute To The Java SE Reference Implementation OSCON 2011, July 26th, 2011
OpenJDK - When And How To Contribute To The Java SE Reference Implementation OSCON 2011, July 26th, 2011 Dalibor Topić Java F/OSS Ambassador The following is intended to outline our
More informationDescribing the architecture: Creating and Using Architectural Description Languages (ADLs): What are the attributes and R-forms?
Describing the architecture: Creating and Using Architectural Description Languages (ADLs): What are the attributes and R-forms? CIS 8690 Enterprise Architectures Duane Truex, 2013 Cognitive Map of 8090
More informationCS503 Advanced Programming I CS305 Computer Algorithms I
Syllabus: CS503 Advanced Programming I CS305 Computer Algorithms I Course Number: CS503-50/CS305-50 Course Title: Advanced Programming I/Computer Algorithms I Instructor: Richard Scherl Office: Howard
More informationProgram Correctness and Efficiency. Chapter 2
Program Correctness and Efficiency Chapter 2 Chapter Objectives To understand the differences between the three categories of program errors To understand the effect of an uncaught exception and why you
More informationNew Programming Paradigms
New Programming Paradigms Lecturer: Pánovics János (google the name for further details) Requirements: For signature: classroom work and a 15-minute presentation Exam: written exam (mainly concepts and
More informationToday. Instance Method Dispatch. Instance Method Dispatch. Instance Method Dispatch 11/29/11. today. last time
CS2110 Fall 2011 Lecture 25 Java program last time Java compiler Java bytecode (.class files) Compile for platform with JIT Interpret with JVM Under the Hood: The Java Virtual Machine, Part II 1 run native
More informationSoftware Testing. Software Testing
Software Testing Software Testing Error: mistake made by the programmer/ developer Fault: a incorrect piece of code/document (i.e., bug) Failure: result of a fault Goal of software testing: Cause failures
More informationGood afternoon and thank you for being at the webinar on accessible PowerPoint presentations. This is Dr. Zayira Jordan web accessibility coordinator
Good afternoon and thank you for being at the webinar on accessible PowerPoint presentations. This is Dr. Zayira Jordan web accessibility coordinator at Iowa State and this is the topic for this week s
More informationIdentifiers. Identifiers are the words a programmer uses in a program Some identifiers are already defined. Some are made up by the programmer:
C1 D6 Obj: cont. 1.3 and 1.4, to become familiar with identifiers and to understand how programming languages work HW: p.51 #1.8 1.9 (Short Answers) Chapter 1 Test in two class days!! Do Now: How is the
More informationLecture 16: (Architecture IV)
Lecture 16: (Architecture IV) Software System Design and Implementation ITCS/ITIS 6112/8112 091 Fall 2008 Dr. Jamie Payton Department of Computer Science University of North Carolina at Charlotte Oct.
More informationRequirements Elicitation
Requirements Elicitation Introduction into Software Engineering Lecture 4 25. April 2007 Bernd Bruegge Applied Software Engineering Technische Universitaet Muenchen 1 Outline Motivation: Software Lifecycle
More informationObject-Oriented and Classical Software Engineering
Slide 6.1 Object-Oriented and Classical Software Engineering Seventh Edition, WCB/McGraw-Hill, 2007 Stephen R. Schach srs@vuse.vanderbilt.edu CHAPTER 6 Slide 6.2 TESTING 1 Overview Slide 6.3 Quality issues
More informationObject-Oriented and Classical Software Engineering
Slide 6.1 Object-Oriented and Classical Software Engineering Seventh Edition, WCB/McGraw-Hill, 2007 Stephen R. Schach srs@vuse.vanderbilt.edu CHAPTER 6 Slide 6.2 TESTING Overview Slide 6.3 Quality issues
More informationCompiler Design Spring 2017
Compiler Design Spring 2017 8.6 Live variables Dr. Zoltán Majó Compiler Group Java HotSpot Virtual Machine Oracle Corporation Live variables Foundations for several optimizations If a variable is not live,
More informationMei Nagappan. How the programmer wrote it. How the project leader understood it. How the customer explained it. How the project leader understood it
Material and some slide content from: - Software Architecture: Foundations, Theory, and Practice - Elisa Baniassad - Reid Holmes How the customer explained it How the project leader understood it How the
More informationCS 220: Introduction to Parallel Computing. Beginning C. Lecture 2
CS 220: Introduction to Parallel Computing Beginning C Lecture 2 Today s Schedule More C Background Differences: C vs Java/Python The C Compiler HW0 8/25/17 CS 220: Parallel Computing 2 Today s Schedule
More informationProgramming Languages
Programming Languages As difficult to discuss rationally as religion or politics. Prone to extreme statements devoid of data. Examples: "It is practically impossible to teach good programming to students
More informationThe Sun s Java Certification and its Possible Role in the Joint Teaching Material
The Sun s Java Certification and its Possible Role in the Joint Teaching Material Nataša Ibrajter Faculty of Science Department of Mathematics and Informatics Novi Sad 1 Contents Kinds of Sun Certified
More informationCS 307: Software Engineering. Lecture 10: Software Design and Architecture
CS 307: Software Engineering Lecture 10: Software Design and Architecture Prof. Jeff Turkstra 2017 Dr. Jeffrey A. Turkstra 1 Announcements Discuss your product backlog in person or via email by Today Office
More informationObject-Oriented Software Construction
1 Object-Oriented Software Construction Bertrand Meyer Contact 2 Chair of Software Engineering: http://se.inf.ethz.ch Course assistant: Joseph N. Ruskiewicz http://se.inf.ethz.ch/people/ruskiewicz 3 Lecture
More informationSoftware Construction #1: Creating High-Quality Code
Software Construction #1: Creating High-Quality Code Minsoo Ryu Hanyang University Software construction Software construction is mostly coding and debugging But also involves detailed design, construction
More informationQuality Assurance: Test Development & Execution. Ian S. King Test Development Lead Windows CE Base OS Team Microsoft Corporation
Quality Assurance: Test Development & Execution Ian S. King Test Development Lead Windows CE Base OS Team Microsoft Corporation Introduction: Ian King Manager of Test Development for Windows CE Base OS
More informationSoftware Testing. Lecturer: Sebastian Coope Ashton Building, Room G.18
Lecturer: Sebastian Coope Ashton Building, Room G.18 E-mail: coopes@liverpool.ac.uk COMP 201 web-page: http://www.csc.liv.ac.uk/~coopes/comp201 Software Testing 1 Defect Testing Defect testing involves
More informationVerification and Validation. Assuring that a software system meets a user s needs. Verification vs Validation. The V & V Process
Verification and Validation Assuring that a software system meets a user s needs Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 19,20 Slide 1
More informationECE 485/585 Microprocessor System Design
Microprocessor System Design Lecture 8: Principle of Locality Cache Architecture Cache Replacement Policies Zeshan Chishti Electrical and Computer Engineering Dept Maseeh College of Engineering and Computer
More informationChapter 8. Achmad Benny Mutiara
Chapter 8 SOFTWARE-TESTING STRATEGIES Achmad Benny Mutiara amutiara@staff.gunadarma.ac.id 8.1 STATIC-TESTING STRATEGIES Static testing is the systematic examination of a program structure for the purpose
More informationJOVE. An Optimizing Compiler for Java. Allen Wirfs-Brock Instantiations Inc.
An Optimizing Compiler for Java Allen Wirfs-Brock Instantiations Inc. Object-Orient Languages Provide a Breakthrough in Programmer Productivity Reusable software components Higher level abstractions Yield
More informationEngineering Computing M1H Together Towards A Green Environment
Engineering Computing M1H321538 Module Induction Course Resources Lecture/Tutorial hours Course Syllabus Assessment Procedure Expectation from the Students General Terms and Conditions Course Resources
More informationObject Oriented Programming
Binnur Kurt kurt@ce.itu.edu.tr Istanbul Technical University Computer Engineering Department 1 Version 0.1.2 About the Lecturer BSc İTÜ, Computer Engineering Department, 1995 MSc İTÜ, Computer Engineering
More informationOperating- System Structures
Operating- System Structures 2 CHAPTER Practice Exercises 2.1 What is the purpose of system calls? Answer: System calls allow user-level processes to request services of the operating system. 2.2 What
More informationExercise 1: Intro to Java & Eclipse
Exercise 1: Intro to Java & Eclipse Discussion of exercise solution We do not put the exercise solution s source code online! But we show & publish the most important parts on slides There are sometimes
More informationLecture 8 Requirements Engineering
Lecture 8 Requirements Engineering Software Engineering ITCS 3155 Fall 2008 Dr. Jamie Payton Department of Computer Science University of North Carolina at Charlotte September 18, 2008 Lecture Overview
More informationDepartment of Electrical & Computer Engineering, University of Calgary. B.H. Far
SENG 421: Software Metrics Software Test Metrics (Chapter 10) Department of Electrical & Computer Engineering, University of Calgary B.H. Far (far@ucalgary.ca) http://www.enel.ucalgary.ca/people/far/lectures/seng421/10/
More informationCompiler Design Spring 2017
Compiler Design Spring 2017 8.0 Data-Flow Analysis Dr. Zoltán Majó Compiler Group Java HotSpot Virtual Machine Oracle Corporation Admin issues There will be a code review session next week On Thursday
More informationSoftware Quality. Richard Harris
Software Quality Richard Harris Part 1 Software Quality 143.465 Software Quality 2 Presentation Outline Defining Software Quality Improving source code quality More on reliability Software testing Software
More informationCASA External Peer Review Program Guidelines. Table of Contents
CASA External Peer Review Program Guidelines Table of Contents Introduction... I-1 Eligibility/Point System... I-1 How to Request a Peer Review... I-1 Peer Reviewer Qualifications... I-2 CASA Peer Review
More informationCOMP 181 Compilers. Administrative. Last time. Prelude. Compilation strategy. Translation strategy. Lecture 2 Overview
COMP 181 Compilers Lecture 2 Overview September 7, 2006 Administrative Book? Hopefully: Compilers by Aho, Lam, Sethi, Ullman Mailing list Handouts? Programming assignments For next time, write a hello,
More informationFaculty of Engineering Kasetsart University
Faculty of Engineering Kasetsart University Final eamination, 2013-2014, 2 nd Semester Section 450 219343: Software Testing Lecturer: Uwe Gühl Tuesday, 18 th of March, 2014 1.00 pm until 3.00 pm Name:
More informationDesigning Robust Classes
Designing Robust Classes Learning Goals You must be able to:! specify a robust data abstraction! implement a robust class! design robust software! use Java exceptions Specifications and Implementations
More informationProgramming Languages FILS Andrei Vasilateanu
Programming Languages FILS 2014-2015 Andrei Vasilateanu Course Master: Administration Andrei Vasilateanu, andraevs@gmail.com Teaching Assistants: Radu Serban Grading: Final exam 40% Laboratory 60% 2 Tests
More informationCS143 Final Fall 2009
CS143 Final Fall 2009 Please read all instructions (including these) carefully. There are 4 questions on the exam, all with multiple parts. You have 2 hours to work on the exam. The exam is closed book,
More informationAbstraction and Specification
Abstraction and Specification Prof. Clarkson Fall 2017 Today s music: "A Fifth of Beethoven" by Walter Murphy Review Previously in 3110: Language features for modularity Some familiar data structures Today:
More informationSoftware Design and Analysis for Engineers
Software Design and Analysis for Engineers by Dr. Lesley Shannon Email: lshannon@ensc.sfu.ca Course Website: http://www.ensc.sfu.ca/~lshannon/courses/ensc251 Simon Fraser University Slide Set: 9 Date:
More informationAP Computer Science A: Java Programming
AP Computer Science A: Java Programming Zheng-Liang Lu Department of Computer Science & Information Engineering National Taiwan University APcomSci 297 Spring 2018 Class Information Instructor: Zheng-Liang
More informationCS 177 Recitation. Week 1 Intro to Java
CS 177 Recitation Week 1 Intro to Java Questions? Computers Computers can do really complex stuff. How? By manipulating data according to lists of instructions. Fundamentally, this is all that a computer
More informationOutline. Logistics. Logistics. Principles of Software (CSCI 2600) Spring Logistics csci2600/
Outline Principles of Software (CSCI 600) Spring 018 http://www.cs.rpi.edu/academics/courses/spring18/csci600/ Konstantin Kuzmin, kuzmik@cs.rpi.edu Office hours: Monday and Thursday 4:00 pm - 5:30 pm Mailing
More information1DL321: Kompilatorteknik I (Compiler Design 1) Introduction to Programming Language Design and to Compilation
1DL321: Kompilatorteknik I (Compiler Design 1) Introduction to Programming Language Design and to Compilation Administrivia Lecturer: Kostis Sagonas (kostis@it.uu.se) Course home page (of previous year):
More informationCompilers. Computer Science 431
Compilers Computer Science 431 Instructor: Erik Krohn E-mail: krohne@uwosh.edu Text Message Only: 608-492-1106 Class Time: Tuesday & Thursday: 9:40am - 11:10am Classroom: Halsey 237 Office Location: Halsey
More informationLecture Notes on Compiler Design: Overview
Lecture Notes on Compiler Design: Overview 15-411: Compiler Design Frank Pfenning Lecture 1 August 26, 2014 1 Introduction This course is a thorough introduction to compiler design, focusing on more lowlevel
More informationBCS THE CHARTERED INSTITUTE FOR IT. BCS Higher Education Qualifications BCS Level 6 Professional Graduate Diploma in IT EXAMINERS' REPORT
BCS THE CHARTERED INSTITUTE FOR IT BCS Higher Education Qualifications BCS Level 6 Professional Graduate Diploma in IT March 2015 EXAMINERS' REPORT Programming Paradigms General comments on candidates'
More informationGovt. of Karnataka, Department of Technical Education Diploma in Information Science & Engineering. Sixth Semester
Govt. of Karnataka, Department of Technical Education Diploma in Information Science & Engineering Sixth Semester Subject: Software Testing Contact Hrs / week: 4 Total hrs: 64 Table of Contents SN Chapter
More informationCMPS115 Winter 2004 Exam #2 OPEN BOOK/NOTE WORK ALONE (NO TEAMS) COVERS: Lectures 6 17
1. Coupling Example (20 pts) Given a set a modules that print or store student status reports, with data-flow connections as shown in the diagram and table below (arrow direction is In flow, and Out flow
More information