CHAPTER 3 PROGRAMMING TOOLS & ENVIRONMENT SUNG-DONG KIM DEPT. OF COMPUTER ENGINEERING, HANSUNG UNIVERSITY.

Slides:



Advertisements
Similar presentations
Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
Advertisements

Systems Software.
Programming Our First Java Program Yingcai Xiao. What to Do Set up for Java Programming Write our first Java Program with IDE Write our first Java Program.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Guidelines for working with Microsoft Visual Studio.Net.
Guidelines for working with Microsoft Visual Studio 6.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
Introduction 01_intro.ppt
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
CSC300 Visual Programming Dr. Craig Reinhart. Objectives Teach the basics of C++ –You won’t be an expert but hopefully a very good novice –GUI development.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Introduction to Microsoft.Net Session 01 Mata kuliah: M0874 – Programming II Tahun: 2010.
Microsoft Visual Basic 2005: Reloaded Second Edition
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
Developing C/C++ applications with the Eclipse CDT David Gallardo.
Old Chapter 10: Programming Tools A Developer’s Candy Store.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Chapter 0 Overview. Why you are here? Where will you go? What is this course for?
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Memory: Relocation.
ITF11012.NET.NET an Introduction. “This is the best time ever to be a software developer” Steve Ballmer, BUILD Conference, Anaheim, September 13 th 2011.
N from what language did C++ originate? n what’s input, output device? n what’s main memory, memory location, memory address? n what’s a program, data?
Computing System Fundamentals 3.1 Language Translators.
Bit-DSP-MicrocontrollerTMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
 Programming - the process of creating computer programs.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Sung-Dong Kim Dept. of Computer Engineering, Hansung University Chapter 3 Programming Tools.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Computer Software.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Chapter 1 Introduction Samuel College of Computer Science & Technology Harbin Engineering University.
Computer System Structures
Introduction to Visual Basic. NET,. NET Framework and Visual Studio
Component 1.6.
Chapter 2: The Visual Studio .NET Development Environment
Computer Terms Review from what language did C++ originate?
Tools of the Trade
CSCI-235 Micro-Computer Applications
Introduction to Visual Basic 2008 Programming
Introduction to .NET Framework Ch2 – Deitel’s Book
Editor, Compiler, Linker, Debugger, Makefiles
CE-105 Spring 2007 Engr. Faisal ur Rehman
Java programming lecture one
HP C/C++ Remote developer plug-in for Eclipse
Chapter 3: Windows7 Part 1.
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
Chapter 6 System and Application Software
Introduction CSC 111.
Hardware & Software Programming. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing unit.
Operating Systems CSE451 Winter 2000
Creating Your First C Program Using Visual Studio 2010
Creating Your First C Program Using Visual Studio 2010
Outline Chapter 2 (cont) OS Design OS structure
Chapter 6 System and Application Software
Computer Terms Review from what language did C++ originate?
Chapter 6 System and Application Software
Review of Previous Lesson
System Programming By Prof.Naveed Zishan.
Chapter 6 System and Application Software
Overview of System Development for Windows CE.NET
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
FUNDAMENTALS OF DOT NET TRAINING BY SURBHI KALE. INDEX 1.Dot net training Framework Fundamentals 2.CLR Features 3.Class Library Features 4.The Common.
Presentation transcript:

CHAPTER 3 PROGRAMMING TOOLS & ENVIRONMENT SUNG-DONG KIM DEPT. OF COMPUTER ENGINEERING, HANSUNG UNIVERSITY

EDITOR (1)  Language sensitive editor Visual Studio editor, vi, …  VI Two modes Command mode Edit mode On start: command mode ‘Esc’ key: exit from edit mode (2014-1) Understanding of Programming Languages 2

EDITOR (2) Commands (only in command mode) (2014-1) Understanding of Programming Languages 3 commands description a append i insert :w store file :q quit edit cw change word dw delete word x delete character …

TRANSLATOR (1)  Compiler High-level programming language  machine language  Preprocessor Convert program source code before compiling Perform macro substitutions (2014-1) Understanding of Programming Languages 4 #include #define TWO 2 #define MSG “Love is Art”

TRANSLATOR (2)  Interpreter Translate/execute sentence by sentence Slow execution than compiler Inefficient memory management Flexible programming (2014-1) Understanding of Programming Languages 5

LINKER  Connect an object program to the code for standard library functions to resources supplied by the OS  Integrate separate modules External functions External variables  Generate executable code  Support modular programming (2014-1) Understanding of Programming Languages 6

LOADER  Resolve all relocatable addresses relative to a given base (starting) address  Make executable code more flexible  Loading process Behind the scenes (by OS) (2014-1) Understanding of Programming Languages 7

DEBUGGER (1)  Find logical errors in the program  Functions Tracing Breakpoint Watching (2014-1) Understanding of Programming Languages 8

DEBUGGER (2)  Visual Studio’s debugger F9: set/reset breakpoint F5: program run & stop at breakpoint F10: step over ( 한 명령 실행. 함수의 경우 그냥 실행 ) F11: step into ( 한 명령 실행. 함수의 경우 함수 내부로 이동 ) Shift-F5: exit debugging Watch: 변수의 값을 보여줌 Call stack: 함수의 호출 순서를 보여줌 (2014-1) Understanding of Programming Languages 9

DEBUGGER (3)  GDB Compile with –g option Commands (2014-1) Understanding of Programming Languages 10 commands description run run program break set breakpoint clear clear breakpoint print print variable cont continue program list list program code …

(2014-1) Understanding of Programming Languages 11 #include int wib(int no1, int no2) { int result, diff; diff = no1 - no2; result = no1 / diff; return result; }

(2014-1) Understanding of Programming Languages 12 int main(int argc, char *argv[]) { int value, div, result, i, total; value = 10; div = 6; total = 0; for(i = 0; i < 10; i++) { result = wib(value, div); total += result; div++; value--; } printf("%d wibed by %d equals %d\n", value, div, total); return 0; }

CONFIGURATION TOOL  Trace the generation and change of the module  Manage the generation of the execution files  Project file of Visual Studio  Makefile in UNIX (2014-1) Understanding of Programming Languages 13

MAKEFILE  Manage dependencies among program files (2014-1) Understanding of Programming Languages 14 main.c  main.o input.c  input.o calc.c  calc.o output.c  output.o compile add (final execution file) link

(2014-1) Understanding of Programming Languages 15 add : main.o input.o calc.o output.o cc –o add main.o input.o calc.o output.o main.o : main.c cc –c main.c input.o : input.c cc –c input.c calc.o : calc.c cc –c calc.c output.o : output.c cc –c output.c target_code: prerequisite-list construction-command

(2014-1) Understanding of Programming Languages 16 WHAT TO DO: HOMEWORK … points.txt readData() input.c calcGrade() calc.c outputResult() output.c readData() calcGrade() outputResult() main.c … grade.txt

제출할 것  표지 : 프로그래밍 언어론 (A/N class), 이름 .c,.h 파일 하나  1 페이지  point.txt, grade.txt  1 페이지 (2014-1) Understanding of Programming Languages 17

VISUAL STUDIO (1)  IDE (integrated development environment) from Microsoft  History 1997: Visual Studio : Visual Studio : Visual Studio.NET Visual Studio.NET 2003 Visual Studio 2005 Visual Studio 2008 (2014-1) Understanding of Programming Languages 18

VISUAL STUDIO (2)  Features Editor with syntax highlighting and code completion Debugger Compilers Tools Project management Code generating wizards (2014-1) Understanding of Programming Languages 19

.NET FRAMEWORK (1)  What is it? Multi-language environment for building, releasing and executing web services and applications Software component that is a part of Microsoft Windows operating systems (2014-1) Understanding of Programming Languages 20

.NET FRAMEWORK (2)  What does it? Have a large library of pre-coded solutions to common program requirements Manage the execution of programs written specifically for the framework (2014-1) Understanding of Programming Languages 21

.NET FRAMEWORK (3)  History (2014-1) Understanding of Programming Languages 22 VersionRelease dateNotesDevelopment toolDistributed with original version Visual Studio.NETN/A first update Visual Studio.NET 2003 Windows Server rewrite of framework Visual Studio 2005 Windows Server 2003 R2

.NET FRAMEWORK (4) (2014-1) Understanding of Programming Languages 23 VersionRelease dateNotesDevelopment toolDistributed with WCF,WPF,WFExpression Blend Windows VistaWindows Vista, Windows Server LINQVisual Studio 2008 Windows 7Windows 7, Windows Server 2008 R parallel extensions Visual Studio 2010N/A asynchronous programming model Visual Studio 2012 Windows 8Windows 8, Windows Server 2012

.NET FRAMEWORK (5)  Structure (2014-1) Understanding of Programming Languages 24

.NET FRAMEWORK (6)  Components Base Class Library Common Language Runtime New Programming Languages Common Language Specification (2014-1) Understanding of Programming Languages 25

.NET FRAMEWORK (7)  Base Class Library Pre-coded solutions Large range of programming needs in areas including User interface Data access Database connectivity Cryptography Web application development Numeric algorithms Network communications (2014-1) Understanding of Programming Languages 26

.NET FRAMEWORK (8)  Common Language Runtime (CLR) Software environment that manages the program’s runtime requirements Provides the appearance of an application virtual machine  make programmer independent on the specific CPU Provides services Security mechanisms Memory management Exception handling (2014-1) Understanding of Programming Languages 27

.NET FRAMEWORK (9)  New programming languages Visual Basic Visual C++ Visual C# Jscript Visual J# (2014-1) Understanding of Programming Languages 28

.NET FRAMEWORK (10)  Common language specification Common specification of the programming languages Use all capabilities in.NET framework Compatibility among other CLS programming languages (2014-1) Understanding of Programming Languages 29

(2014-1) Understanding of Programming Languages 30 Common Language Infrastructure

ECLIPSE (1)  What Software development platform in Java language Java development environment (JDK) + plug-in  Features Open source Java development environment (2014-1) Understanding of Programming Languages 31

ECLIPSE (2)  History From IBM Object Technology International (OTI) Nov., 2001: Consortium Jan., 2004: Eclipse foundation ( (2014-1) Understanding of Programming Languages 32

ECLIPSE (3)  Release (2014-1) Understanding of Programming Languages 33 ReleaseDateVersion Callisto 2006 년 6 월 30 일 3.2 Europa 2007 년 6 월 29 일 3.3 Ganymede 2008 년 6 월 25 일 3.4 Galileo 2009 년 6 월 24 일 3.5 Helios 2010 년 6 월 23 일 3.6 Indigo 2011 년 6 월 22 일 3.7 Juno 2012 년 6 월 27 일 3.8 & 4.2 Kepler 2013 년 6 월 26 일 ( 예정 ) 4.xx

ECLIPSE (4)  Installation Download Eclipse eclipse-SDK win32.zip (2014-1) Understanding of Programming Languages 34

(2014-1) Understanding of Programming Languages 35

(2014-1) Understanding of Programming Languages 36

ECLIPSE (5)  Programming (2014-1) Understanding of Programming Languages 37

ECLIPSE (6)  JRE (java runtime environment) (2014-1) Understanding of Programming Languages 38

(2014-1) Understanding of Programming Languages 39

ECLIPSE (7)  Run eclipse (2014-1) Understanding of Programming Languages 40

(2014-1) Understanding of Programming Languages 41

(2014-1) Understanding of Programming Languages 42

(2014-1) Understanding of Programming Languages 43

(2014-1) Understanding of Programming Languages 44

(2014-1) Understanding of Programming Languages 45

(2014-1) Understanding of Programming Languages 46

(2014-1) Understanding of Programming Languages 47

(2014-1) Understanding of Programming Languages 48

(2014-1) Understanding of Programming Languages 49

XCODE (1)  IDE in Mac OS (2014-1) Understanding of Programming Languages 50

(2014-1) Understanding of Programming Languages 51

(2014-1) Understanding of Programming Languages 52

(2014-1) Understanding of Programming Languages 53

(2014-1) Understanding of Programming Languages 54

(2014-1) Understanding of Programming Languages 55

(2014-1) Understanding of Programming Languages 56