I117 II I117 PROGRAMMING PRACTICE II DEBUG Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara

Similar documents
/ SCHEDULE /06/07(Tue) / Basic of Programming /06/09(Thu) / Fundamental structures /06/14(Tue) / Memory Management /06/1

I117 II I117 PROGRAMMING PRACTICE II SOFTWARE DEVELOPMENT ENV. 1 Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara

I117 II I117 PROGRAMMING PRACTICE II 2 SOFTWARE DEVELOPMENT ENV. 2 Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara yasu

I117 II I117 PROGRAMMING PRACTICE II HASH Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara

/ SCHEDULE /06/07(Tue) / Basic of Programming /06/09(Thu) / Fundamental data structures /06/14(Tue) / Memory Management

Linux2.4でのメモリ管理機構

Microsoft PowerPoint - NxLecture ppt [互換モード]

I117 II I117 PROGRAMMING PRACTICE II SCRIPT LANGUAGE 1 Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara

~~~~~~~~~~~~~~~~~~ wait Call CPU time 1, latch: library cache 7, latch: library cache lock 4, job scheduler co

main.dvi

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

Copyright Oracle Parkway, Redwood City, CA U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated softw

Intel Memory Protection Extensions(Intel MPX) x86, x CPU skylake 2015 Intel Software Development Emulator 本資料に登場する Intel は Intel Corp. の登録

( ) ( ) 30 ( ) 27 [1] p LIFO(last in first out, ) (push) (pup) 1

2 2 3 dbxtool dbx (GUI) dbxtool dbx C++ Oracle Solaris Studio 12.2 examples/debugger/debug_tutorial 1. cp -r /opt/solstudio12.2/examples/de

Vol. 48 No. 4 Apr LAN TCP/IP LAN TCP/IP 1 PC TCP/IP 1 PC User-mode Linux 12 Development of a System to Visualize Computer Network Behavior for L

Introduction Purpose This course explains how to use Mapview, a utility program for the Highperformance Embedded Workshop (HEW) development environmen

1 1 CodeDrummer CodeMusician CodeDrummer Fig. 1 Overview of proposal system c

GPGPU

,,,,., C Java,,.,,.,., ,,.,, i

Microsoft PowerPoint mm2

28 Docker Design and Implementation of Program Evaluation System Using Docker Virtualized Environment

16.16%

プロセッサ・アーキテクチャ

4.1 % 7.5 %

IPSJ SIG Technical Report Vol.2014-EIP-63 No /2/21 1,a) Wi-Fi Probe Request MAC MAC Probe Request MAC A dynamic ads control based on tra

I117 プログラミング演習II

X Window System X X &

1 OpenCL OpenCL 1 OpenCL GPU ( ) 1 OpenCL Compute Units Elements OpenCL OpenCL SPMD (Single-Program, Multiple-Data) SPMD OpenCL work-item work-group N

TH-42PAS10 TH-37PAS10 TQBA0286

1 Code Generation Part I Chapter 8 (1 st ed. Ch.9) COP5621 Compiler Construction Copyright Robert van Engelen, Florida State University,

1 Table 1: Identification by color of voxel Voxel Mode of expression Nothing Other 1 Orange 2 Blue 3 Yellow 4 SSL Humanoid SSL-Vision 3 3 [, 21] 8 325

206“ƒŁ\”ƒ-fl_“H„¤‰ZŁñ

24 LED A visual programming environment for art work using a LED matrix

2

untitled

Complex Lab – Operating Systems - Graphical Console

単位、情報量、デジタルデータ、CPUと高速化 ~ICT用語集~

Vol. 42 No. SIG 8(TOD 10) July HTML 100 Development of Authoring and Delivery System for Synchronized Contents and Experiment on High Spe

A Responsive Processor for Parallel/Distributed Real-time Processing

1_26.dvi

Vol. 42 No MUC-6 6) 90% 2) MUC-6 MET-1 7),8) 7 90% 1 MUC IREX-NE 9) 10),11) 1) MUCMET 12) IREX-NE 13) ARPA 1987 MUC 1992 TREC IREX-N

第2回

r07.dvi

untitled

2

Introduction Purpose The course describes library configuration and usage in the High Performance Embedded Workshop (HEW), which speeds development of

ohp07.dvi

MOMW_I_,II 利用ガイド.PDF

06’ÓŠ¹/ŒØŒì

評論・社会科学 84号(よこ)(P)/3.金子

2

2

TOOLS for UR44 Release Notes for Windows

I. Opal SSC 1. Opal SSC 2. Opal Storage 3. Opal Storage MBR Shadowing 6. SP II. TCG Opal SSC HDD 9. Opal SSC HDD *1. TCG: Trusted Computin

25 II :30 16:00 (1),. Do not open this problem booklet until the start of the examination is announced. (2) 3.. Answer the following 3 proble

Quickstart Guide 3rd Edition

3_23.dvi

.N..

WinDriver PCI Quick Start Guide

H8000操作編



Z7000操作編_本文.indb

ohp1.dvi

SEJulyMs更新V7



P3FY-A JP.PDF


untitled

HN58V256Aシリーズ/HN58V257Aシリーズ データシート


Jan, 2004 Plenary Meeting ARIB 5 Jan, 2005 Plenary Meeting x86 BML Browser on DirectFB Jan, 2006 Technical Jamboree ARIB Extension for DirectFB 2

1 1.1 PC PC PC PC PC workstation PC hardsoft PC PC CPU 1 Gustavb, Wikimedia Commons.

HN58C256A シリーズ/HN58C257A シリーズ データシート

VE-GP32DL_DW_ZA

GP05取説.indb

Microsoft PowerPoint - Lecture ppt [互換モード]



ディープラーニングとオープンサイエンス ~研究の爆速化が引き起こす摩擦なき情報流通へのシフト~

main.dvi

fx-9860G Manager PLUS_J

,4) 1 P% P%P=2.5 5%!%! (1) = (2) l l Figure 1 A compilation flow of the proposing sampling based architecture simulation

CM1-GTX

Contents Logging in 3-14 Downloading files from e-ijlp 15 Submitting files on e-ijlp Sending messages to instructors Setting up automatic

Microsoft Word - Win-Outlook.docx


2006 [3] Scratch Squeak PEN [4] PenFlowchart 2 3 PenFlowchart 4 PenFlowchart PEN xdncl PEN [5] PEN xdncl DNCL 1 1 [6] 1 PEN Fig. 1 The PEN


1

A pp CALL College Life CD-ROM Development of CD-ROM English Teaching Materials, College Life Series, for Improving English Communica

IPSJ SIG Technical Report Vol.2011-DBS-153 No /11/3 Wikipedia Wikipedia Wikipedia Extracting Difference Information from Multilingual Wiki

ABSTRACT The movement to increase the adult literacy rate in Nepal has been growing since democratization in In recent years, about 300,000 peop

Technische Beschreibung P82R SMD

Sport and the Media: The Close Relationship between Sport and Broadcasting SUDO, Haruo1) Abstract This report tries to demonstrate the relationship be

29 jjencode JavaScript

6 2. AUTOSAR 2.1 AUTOSAR AUTOSAR ECU OSEK/VDX 3) OSEK/VDX OS AUTOSAR AUTOSAR ECU AUTOSAR 1 AUTOSAR BSW (Basic Software) (Runtime Environment) Applicat


Transcription:

I117 II I117 PROGRAMMING PRACTICE II DEBUG Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara yasu@jaist.ac.jp

/ SCHEDULE 1. 2011/06/07(Tue) / Basic of Programming 2. 2011/06/09(Thu) / Fundamental data structures 3. 2011/06/14(Tue) / Memory Management 1 4. 2011/06/16(Thu) / Memory Management 2 5. 2011/06/21(Tue) / Debugging 6. 2011/06/23(Thu) / Software Development Env. 1 7. 2011/06/28(Tue) / Software Development Env. 2 8. 2011/06/30(Thu) / Data Structure : Tree 9. 2011/07/05(Tue) / Data Structure: Hash 10. 2011/07/07(Thu) / Understanding Programs 1 11. 2011/07/12(Tue) / Understanding Programs 2 12. 2011/07/14(Thu) / Script Language 1 13. 2011/07/19(Tue) / Script Language 2 14. 2011/07/21(Thu) / Other Languages 15. 2011/07/26(Tue) / Examination

/ FINAL REPORT free topic : decide topic by 7/5(Tue) report us of the topic by e-mail: i117report@jaist.ac.jp / Sound file converter / web crawler (CalDAV) calendar program new shell, editor, window manager rsync encrypt/decrypt, rsync markov-chain program choose good theme TAask TA and me The final report must have deep consideration

/ TODAY'S INDEX / queue, stack / debug / how program runs / memory location, call stack, stack trace / debug method printf / printf debug /debugger / memory checker

/ QUEUE, STACK

FIFOFIRST IN FIRST OUT queue / queue is an array / FIFO enqueue: / insert data dequeue: / extract data / pseudo code enqueue(data) queue q; q.enqueue(1); q.enqueue(2); q.enqueue(3); q.enqueue(4); q.dequeue(); /* 1/ result is 1 */ q.dequeue(); /* 2/ result is 2 */ dequeue() 4 3 2 1

LIFOLAST IN FIRST OUT / stack / LIFO push: / insert data pop: / extract data push(data) / pseudo code pop() stack s; s.push(1); s.push(2); s.push(3); s.push(4); s.pop(); /* 4/ result is 4 */ s.pop(); /* 3/ result is 3 */ 4 3 2 1

/ HOW PROGRAM RUNS

/ COMPONENTS OF COMPUTER SYSTEMS CPU / processing unit SPARC, x86, MIPS,POWER,,, / memory CPU / main, cache memory HDD / storage I/O / I/O Devices / HDD, Network I/F, Keyboard, mouse, display I/O / Memory mapped I/O I/O CPU

CPU / CPU ACTIONS / control fetch, decode, execute, write back / instructions / arithmetic instruction / shift instruction / jump instruction / compare instruction / I/O instruction / instruction, operand http://ray.sakura.ne.jp/asm/0.html / A book.

CPU / CPU ACTIONSCONT / instruction cycles (Fetch) (Decode) (Execute) (Writeback / sequential control FDEW / FDEW for one instruction / one instruction each. F D E W F D E W F D E W

CPU / CPU ACTIONS (CONT) / advanced control / pipeline / constant time for each instruction / gain thruput by shifting instruction stages F D E W F D E W F D E W 4 F D E W 5 F D E W 6 F D E W

/ MEMORY ASSIGNMENT, CALL STACK

/ MEMORY RANGE / physical memory Kernel / memory mapping in kernel / logical memory virtual memory / logical memory address spaces / paging

/ MEMORY MAPPING / segment / text segment / data segment DATA BSS HEAP / common library segment / stack segment / protection SIGSEGV / send SIGSEGV upon accessing other than the segment. low-address high-address

TEXT / TEXT SEGMENT / a program in a machine code is located / function pointers point an address within this area. TEXT / protected against write x86 CPU / recent CPU does not execute other than this area. / buffer overrun : NX bit (AMD), XD bit (Intel) / bits in a page table entry to select whether the data is executable

DATA DATA / initialized static and global variables / the initial value is described BSSBlock Started by Symbol / uninitialized static and global variables BSS / the executable file does not have BSS area BSS0 / allocated before run HEAP malloc / used by malloc

STACK / HOW STACK WORKS PUSH POP SPARC : SP x86 : SP(16bit)/ESP(32bit)/RSP(64bit) SPARC: FP x86 : BP(16bit)/EBP(32bit)/RBP(64bit) high-address

/ EXAMPLE PROCESS MEMORY MAPPING pmap display information about the address space of a process TEXT DATA LIBRARY STACK libc TEXT libc DATA Shared Mapping ld TEXT ld DATA

/ PROCESS RESOURCE LIMITATION csh/sh limit/ulimit