User Guide Ecos User Guide Copyright © 2001, 2002, 2003, 2004, 2009 Free Software Foundation, Inc

Total Page:16

File Type:pdf, Size:1020Kb

User Guide Ecos User Guide Copyright © 2001, 2002, 2003, 2004, 2009 Free Software Foundation, Inc eCos User Guide eCos User Guide Copyright © 2001, 2002, 2003, 2004, 2009 Free Software Foundation, Inc. Documentation licensing terms This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/). Distribution of the work or derivative of the work in any standard (paper) book form is prohibited unless prior permission is obtained from the copyright holder. Trademarks Altera® and Excalibur™ are trademarks of Altera Corporation. AMD® is a registered trademark of Advanced Micro Devices, Inc. ARM®, StrongARM®, Thumb®, ARM7™, ARM9™ is a registered trademark of Advanced RISC Machines, Ltd. Cirrus Logic® and Maverick™ are registered trademarks of Cirrus Logic, Inc. Cogent™ is a trademark of Cogent Computer Systems, Inc. Compaq® is a registered trademark of the Compaq Computer Corporation. Fujitsu® is a registered trademark of Fujitsu Limited. IBM®, and PowerPC™ are trademarks of International Business Machines Corporation. IDT® is a registered trademark of Integrated Device Technology Inc. Intel®, i386™, Pentium®, StrataFlash® and XScale™ are trademarks of Intel Corporation. Intrinsyc® and Cerf™ are trademarks of Intrinsyc Software, Inc. Linux® is a registered trademark of Linus Torvalds. Matsushita™ and Panasonic® are trademarks of the Matsushita Electric Industrial Corporation. Microsoft®, Windows®, Windows NT® and Windows XP® are registered trademarks of Microsoft Corporation, Inc. MIPS®, MIPS32™ MIPS64™, 4K™, 5K™ Atlas™ and Malta™ are trademarks of MIPS Technologies, Inc. Motorola®, ColdFire® is a trademark of Motorola, Inc. NEC® V800™, V850™, V850/SA1™, V850/SB1™, VR4300™, and VRC4375™ are trademarks of NEC Corporation. PMC-Sierra® RM7000™ and Ocelot™ are trademarks of PMC-Sierra Incorporated. Red Hat, eCos™, RedBoot™, GNUPro®, and Insight™ are trademarks of Red Hat, Inc. Samsung® and CalmRISC™ are trademarks or registered trademarks of Samsung, Inc. Sharp® is a registered trademark of Sharp Electronics Corp. SPARC® is a registered trademark of SPARC International, Inc., and is used under license by Sun Microsystems, Inc. Sun Microsystems® and Solaris® are registered trademarks of Sun Microsystems, Inc. SuperH™ and Renesas™ are trademarks owned by Renesas Technology Corp. Texas Instruments®, OMAP™ and Innovator™ are trademarks of Texas Instruments Incorporated. Toshiba® is a registered trademark of the Toshiba Corporation. UNIX® is a registered trademark of The Open Group. All other brand and product names, trademarks, and copyrights are the property of their respective owners. Table of Contents I. Introduction ................................................................................................................................................ xiii 1. Key Features.......................................................................................................................................... 1 2. eCos Overview ...................................................................................................................................... 3 3. eCos Licence Overview ........................................................................................................................ 5 Questions and answers .................................................................................................................... 5 Previous License.............................................................................................................................. 6 4. Notation and Conventions..................................................................................................................... 7 GDB and GCC Command Notation................................................................................................ 7 Directory and File System Conventions.......................................................................................... 7 Version Conventions........................................................................................................................ 7 5. Documentation Roadmap...................................................................................................................... 9 II. Installing eCos............................................................................................................................................ 11 6. System Requirements.......................................................................................................................... 13 7. Installation on Linux ........................................................................................................................... 15 8. Installation on Windows...................................................................................................................... 17 9. Target Setup......................................................................................................................................... 19 Connecting Via Serial Line ........................................................................................................... 19 Connecting Via Ethernet................................................................................................................ 19 Using A Simulator Target.............................................................................................................. 19 Using A Synthetic Target .............................................................................................................. 20 III. Programming With eCos......................................................................................................................... 21 10. Programming With eCos................................................................................................................... 23 The Development Process ............................................................................................................. 23 eCos Configuration .............................................................................................................. 23 Integrity check of the eCos configuration............................................................................ 23 Application Development - Target Neutral Part .................................................................. 23 Application Development - Target Specific Part.................................................................. 24 11. Configuring and Building eCos from Source.................................................................................... 25 eCos Start-up Configurations ........................................................................................................ 25 Configuration Tool on Windows and Linux Quick Start............................................................... 26 Ecosconfig on Windows and Linux Quick Start............................................................................ 29 Selecting a Target................................................................................................................. 31 12. Running an eCos Test Case............................................................................................................... 33 Using the Configuration Tool ........................................................................................................ 33 Using the command line................................................................................................................ 34 Testing Filters ................................................................................................................................ 36 13. Building and Running Sample Applications..................................................................................... 37 eCos Hello World .......................................................................................................................... 37 eCos hello world program listing......................................................................................... 37 A Sample Program with Two Threads .......................................................................................... 38 eCos two-threaded program listing...................................................................................... 38 14. More Features — Clocks and Alarm Handlers................................................................................. 41 A Sample Program with Alarms.................................................................................................... 41 iii IV. The eCos Configuration Tool................................................................................................................... 45 15. Getting Started .................................................................................................................................. 47 Introduction ................................................................................................................................... 47 Invoking the eCos Configuration Tool........................................................................................... 47 On Linux .............................................................................................................................. 47 On Windows......................................................................................................................... 47 The Component Repository..........................................................................................................
Recommended publications
  • Schedule 14A Employee Slides Supertex Sunnyvale
    UNITED STATES SECURITIES AND EXCHANGE COMMISSION Washington, D.C. 20549 SCHEDULE 14A Proxy Statement Pursuant to Section 14(a) of the Securities Exchange Act of 1934 Filed by the Registrant Filed by a Party other than the Registrant Check the appropriate box: Preliminary Proxy Statement Confidential, for Use of the Commission Only (as permitted by Rule 14a-6(e)(2)) Definitive Proxy Statement Definitive Additional Materials Soliciting Material Pursuant to §240.14a-12 Supertex, Inc. (Name of Registrant as Specified In Its Charter) Microchip Technology Incorporated (Name of Person(s) Filing Proxy Statement, if other than the Registrant) Payment of Filing Fee (Check the appropriate box): No fee required. Fee computed on table below per Exchange Act Rules 14a-6(i)(1) and 0-11. (1) Title of each class of securities to which transaction applies: (2) Aggregate number of securities to which transaction applies: (3) Per unit price or other underlying value of transaction computed pursuant to Exchange Act Rule 0-11 (set forth the amount on which the filing fee is calculated and state how it was determined): (4) Proposed maximum aggregate value of transaction: (5) Total fee paid: Fee paid previously with preliminary materials. Check box if any part of the fee is offset as provided by Exchange Act Rule 0-11(a)(2) and identify the filing for which the offsetting fee was paid previously. Identify the previous filing by registration statement number, or the Form or Schedule and the date of its filing. (1) Amount Previously Paid: (2) Form, Schedule or Registration Statement No.: (3) Filing Party: (4) Date Filed: Filed by Microchip Technology Incorporated Pursuant to Rule 14a-12 of the Securities Exchange Act of 1934 Subject Company: Supertex, Inc.
    [Show full text]
  • Endian: from the Ground up a Coordinated Approach
    WHITEPAPER Endian: From the Ground Up A Coordinated Approach By Kevin Johnston Senior Staff Engineer, Verilab July 2008 © 2008 Verilab, Inc. 7320 N MOPAC Expressway | Suite 203 | Austin, TX 78731-2309 | 512.372.8367 | www.verilab.com WHITEPAPER INTRODUCTION WHat DOES ENDIAN MEAN? Data in Imagine XYZ Corp finally receives first silicon for the main Endian relates the significance order of symbols to the computers chip for its new camera phone. All initial testing proceeds position order of symbols in any representation of any flawlessly until they try an image capture. The display is kind of data, if significance is position-dependent in that regularly completely garbled. representation. undergoes Of course there are many possible causes, and the debug Let’s take a specific type of data, and a specific form of dozens if not team analyzes code traces, packet traces, memory dumps. representation that possesses position-dependent signifi- There is no problem with the code. There is no problem cance: A digit sequence representing a numeric value, like hundreds of with data transport. The problem is eventually tracked “5896”. Each digit position has significance relative to all down to the data format. other digit positions. transformations The development team ran many, many pre-silicon simula- I’m using the word “digit” in the generalized sense of an between tions of the system to check datapath integrity, bandwidth, arbitrary radix, not necessarily decimal. Decimal and a few producer and error correction. The verification effort checked that all other specific radixes happen to be particularly useful for the data submitted at the camera port eventually emerged illustration simply due to their familiarity, but all of the consumer.
    [Show full text]
  • Embedded Market Study, 2013
    2013 EMBEDDED MARKET STUDY Essential to Engineers DATASHEETS.COM | DESIGNCON | DESIGN EAST & DESIGN WEST | EBN | EDN | EE TIMES | EMBEDDED | PLANET ANALOG | TECHONLINE | TEST & MEASUREMENT WORLD 2013 Embedded Market Study 2 UBM Tech Electronics’ Brands Unparalleled Reach & Experience UBM Tech Electronics is the media and marketing services solution for the design engineering and electronics industry. Our audience of over 2,358,928 (as of March 5, 2013) are the executives and engineers worldwide who design, develop, and commercialize technology. We provide them with the essentials they need to succeed: news and analysis, design and technology, product data, education, and fun. Copyright © 2013 by UBM. All rights reserved. 2013 Embedded Market Study 5 Purpose and Methodology • Purpose: To profile the findings of the 2013 results of EE Times Group annual comprehensive survey of the embedded systems markets worldwide. Findings include types of technology used, all aspects of the embedded development process, tools used, work environment, applications, methods and processes, operating systems used, reasons for using and not using chips and technology, and brands and chips currently used by or being considered by embedded developers. Many questions in this survey have been trended over two to five years. • Methodology: A web-based online survey instrument based on the previous year’s survey was developed and implemented by independent research company Wilson Research Group from January 18, 2013 to February 13, 2013 by email invitation • Sample: E-mail invitations were sent to subscribers to UBM/EE Times Group Embedded Brands with one reminder invitation. Each invitation included a link to the survey. • Returns: 2,098 valid respondents for an overall confidence of 95% +/- 2.13%.
    [Show full text]
  • Real-Time Embedded Systems
    Real-Time Embedded Systems Ch3: Microprocessor Objectives Microprocessor Characteristics Von Neumann and Harvard architectures I/O Addressing Endianness Memory organization of some classic microprocessors ◦ PIC18F8720 ◦ Intel 8086 ◦ Intel Pentium ◦ Arm X. Fan: Real-Time Embedded Systems 2 Some microprocessors used in embedded systems 3 Microprocessor Architectures Von Neumann Architecture ◦ Data and instructions (executable code) are stored in the same address space. ◦ The processor interfaces to memory through a single set of address/data buses. Harvard Architecture ◦ Data and instructions (executable code) are stored in separate address spaces. ◦ There are two sets of address/data buses between processor and memory. Complex Instruction Set Computer (CISC) ◦ runs “complex instructions“ where a single instruction may execute several low-level operations Reduced Instruction Set Computer (RISC) ◦ runs compact, uniform instructions where the amount of work any single instruction accomplishes is reduced. 4 Other Stuff Processing Width ◦ Width ◦ Word I/O Addressing ◦ Special instruction vs memory mapped Reset Vector ◦ Intell – high end of address space ◦ PIC/ and Motorolla (Frescale, NXT….) low ◦ Arm definable ◦ Why put it on end or the other? X. Fan: Real-Time Embedded Systems 5 Endianness VS 6 Endianness Whether integers are presented from left to right or right to left ◦ Little-endian: the least significant byte stored at the lowest memory address ◦ Big-endian: the most significant byte stored at the lowest memory address 7 System Convention Be internally consistent ◦ Endianness ◦ Data formats ◦ Protocols ◦ Units Do conversion ASAP and ALAP ◦ On and off the wire X. Fan: Real-Time Embedded Systems 8 PIC18F8720 9 PIC18F8720: Memory organization 10 PIC18F8720: EMI Operating mode: Word Write Mode This mode allows instruction fetches and table reads from, and table writes to, all forms of 16-bit (word-wide) external memories.
    [Show full text]
  • Anthony J. Massa
    EMBEDDED SOFTWARE DEVELOPMENT WITH ECOS™ Anthony J. Massa EMBEDDED SOFTWARE DEVELOPMENT WITH ECOS Anthony J. Massa PRENTICE HALL PROFESSIONAL TECHNICAL REFERENCE UPPER SADDLE RIVER, NJ 07458 WWW.PHPTR.COM WWW.PHPTR.COM/MASSA/ Library of Congress Cataloging-in-Publication Data Massa, Anthony J. Embedded software development with eCos / Anthony J. Massa p. cm.--(Bruce Perens' Open source series) ISBN 0-13-035473-2 1. Embedded computer systems--Programming. 2. Application software--Development. 3. Real-time data processing. I. Title. II. Series. QA76.6 .M364317 2002 005.26--dc21 2002035507 Editorial/production supervision: Techne Group Cover design director: Jerry Votta Cover design: Anthony Gemmellaro Art director: Gail Cocker-Bogusz Interior design: Meg Van Arsdale Manufacturing buyer: Maura Zaldivar Editor-in-Chief: Mark L. Taub Editorial assistant: Kate Wolf Marketing manager: Bryan Gambrel Full-service production manager: Anne R. Garcia © 2003 Pearson Education, Inc. Publishing as Prentice Hall Professional Technical Reference Upper Saddle River, New Jersey 07458 This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at <http://www.opencontent.org/openpub/>). Prentice Hall books are widely used by corporations and government agencies for training, marketing, and resale. For information regarding corporate and government bulk discounts please contact: Corporate and Government Sales (800) 382-3419 or [email protected] Other company and product names mentioned herein are the trademarks or registered trademarks of their respective owners. All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher.
    [Show full text]
  • Lecture #2 "Computer Systems Big Picture"
    18-600 Foundations of Computer Systems Lecture 2: “Computer Systems: The Big Picture” John P. Shen & Gregory Kesden 18-600 August 30, 2017 CS: AAP CS: APP ➢ Recommended Reference: ❖ Chapters 1 and 2 of Shen and Lipasti (SnL). ➢ Other Relevant References: ❖ “A Detailed Analysis of Contemporary ARM and x86 Architectures” by Emily Blem, Jaikrishnan Menon, and Karthikeyan Sankaralingam . (2013) ❖ “Amdahl’s and Gustafson’s Laws Revisited” by Andrzej Karbowski. (2008) 8/30/2017 (©J.P. Shen) 18-600 Lecture #2 1 18-600 Foundations of Computer Systems Lecture 2: “Computer Systems: The Big Picture” 1. Instruction Set Architecture (ISA) a. Hardware / Software Interface (HSI) b. Dynamic / Static Interface (DSI) c. Instruction Set Architecture Design & Examples 2. Historical Perspective on Computing a. Major Epochs of Modern Computers b. Computer Performance Iron Law (#1) 3. “Economics” of Computer Systems a. Amdahl’s Law and Gustafson’s Law b. Moore’s Law and Bell’s Law 8/30/2017 (©J.P. Shen) 18-600 Lecture #2 2 Anatomy of Engineering Design SPECIFICATION: Behavioral description of “What does it do?” Synthesis: Search for possible solutions; pick best one. Creative process IMPLEMENTATION: Structural description of “How is it constructed?” Analysis: Validate if the design meets the specification. “Does it do the right thing?” + “How well does it perform?” 8/30/2017 (©J.P. Shen) 18-600 Lecture #2 3 [Gerrit Blaauw & Fred Brooks, 1981] Instruction Set Processor Design ARCHITECTURE: (ISA) programmer/compiler view = SPECIFICATION • Functional programming model to application/system programmers • Opcodes, addressing modes, architected registers, IEEE floating point IMPLEMENTATION: (μarchitecture) processor designer view • Logical structure or organization that performs the ISA specification • Pipelining, functional units, caches, physical registers, buses, branch predictors REALIZATION: (Chip) chip/system designer view • Physical structure that embodies the implementation • Gates, cells, transistors, wires, dies, packaging 8/30/2017 (©J.P.
    [Show full text]
  • KVM on POWER7
    Developments in KVM on Power Paul Mackerras, IBM LTC OzLabs [email protected] Outline . Introduction . Little-endian support . OpenStack . Nested virtualization . Guest hotplug . Hardware error detection and recovery 2 21 October 2013 © 2013 IBM Introduction • We will be releasing POWER® machines with KVM – Announcement by Arvind Krishna, IBM executive • POWER8® processor disclosed at Hot Chips conference – 12 cores per chip, 8 threads per core – 96kB L1 cache, 512kB L2 cache, 8MB L3 cache per core on chip u u Guest Guest m host OS process m e e OS OS q host OS process q host OS process KVM Host Linux Kernel SAPPHIRE FSP POWER hardware 3 21 October 2013 © 2013 IBM Introduction • “Sapphire” firmware being developed for these machines – Team led by Ben Herrenschmidt – Successor to OPAL • Provides initialization and boot services for host OS – Load first-stage Linux kernel from flash – Probe the machine and set up device tree – Petitboot bootloader to load and run the host kernel (via kexec) • Provides low-level run-time services to host kernel – Communication with the service processor (FSP) • Console • Power and reboot control • Non-volatile memory • Time of day clock • Error logging facilities – Some low-level error detection and recovery services 4 21 October 2013 © 2013 IBM Little-endian Support • Modern POWER CPUs have a little-endian mode – Instructions and multi-byte data operands interpreted in little-endian byte order • Lowest-numbered byte is least significant, rather than most significant – “True” little endian, not address swizzling
    [Show full text]
  • EECS 373 Design of Microprocessor-Based Systems
    EECS 373 Design of Microprocessor-Based Systems Website: https://www.eecs.umich.edu/courses/eecs373/ Robert Dick University of Michigan Lecture 1: Introduction, ARM ISA September 6 2017 Many slides from Mark Brehob Teacher Robert Dick http://robertdick.org/ [email protected] EECS Professor Co-founder, CEO of profitable direct- to-consumer athletic wearable electronics company (Stryd) Visiting Professor at Tsinghua Univeristy Graduate studies at Princeton Visiting Researcher at NEC Labs, America, where technology went into their smartphones ~100 research papers on embedded system design Lab instructor Matthew Smith [email protected] Head lab instructor 15 years of 373 experience He has seen it before … but he’ll make you figure it out yourself TAs Took EECS 373 Jon Toto <[email protected]> Brennan Garrett <[email protected]> Thomas Deeds <[email protected]> Melinda Kothbauer <[email protected]> Course goals Embedded system design Debugging complex systems Communication and marketing A head start on a new product or research idea What is an embedded system? An (application-specific) computer within something else that is not generally regarded as a computer. Embedded, everywhere Embedded systems market Dominates general-purpose computing market in volume. Similar in monetary size to general-purpose computing market. Growing at 15% per year, 10% for general- purpose computing. Car example: half of value in embedded electronics, from zero a few decades ago. Common requirements Timely (hard real-time) Wireless Reliable
    [Show full text]
  • MICROCONTROLLER SUPPORT TOOL Tel: +81-45-415-5858
    FUJITSU SEMICONDUCTOR LIMITED Nomura Fudosan Shin-yokohama Bldg. 10-23, Shin-yokohama 2-Chome, Kohoku-ku Yokohama Kanagawa 222-0033, Japan MICROCONTROLLER SUPPORT TOOL Tel: +81-45-415-5858 http://jp.fujitsu.com/fsl/en/ For further information please contact: North and South America Asia Pacific FUJITSU SEMICONDUCTOR AMERICA, INC. FUJITSU SEMICONDUCTOR ASIA PTE. LTD. 1250 E. Arques Avenue, M/S 333 151 Lorong Chuan, Sunnyvale, CA 94085-5401, U.S.A. #05-08 New Tech Park 556741 Singapore Tel: +1-408-737-5600 Fax: +1-408-737-5999 Tel : +65-6281-0770 Fax : +65-6281-0220 http://us.fujitsu.com/micro/ http://www.fujitsu.com/sg/services/micro/semiconductor/ Europe FUJITSU SEMICONDUCTOR SHANGHAI CO., LTD. FUJITSU SEMICONDUCTOR EUROPE GmbH Rm. 3102, Bund Center, No.222 Yan An Road (E), Pittlerstrasse 47, 63225 Langen, Germany Shanghai 200002, China Tel: +49-6103-690-0 Fax: +49-6103-690-122 Tel : +86-21-6146-3688 Fax : +86-21-6335-1605 http://emea.fujitsu.com/semiconductor/ http://cn.fujitsu.com/fss/ Korea FUJITSU SEMICONDUCTOR PACIFIC ASIA LTD. FUJITSU SEMICONDUCTOR KOREA LTD. 10/F., World Commerce Centre, 11 Canton Road, 206 Kosmo Tower Building, 1002 Daechi-Dong, Tsimshatsui, Kowloon, Hong Kong Gangnam-Gu, Seoul 135-280, Republic of Korea Tel : +852-2377-0226 Fax : +852-2376-3269 Tel: +82-2-3484-7100 Fax: +82-2-3484-7111 http://cn.fujitsu.com/fsp/ http://kr.fujitsu.com/fmk/ Specifications are subject to change without notice. For further information please contact each office. All Rights Reserved. The contents of this document are subject to change without notice.
    [Show full text]
  • Fr/F2mc Family Softune Realos/Fr/907/896
    FUJITSU SEMICONDUCTOR CM71-00322-4E CONTROLLER MANUAL FR/F²MCTM FAMILY IN CONFORMANCE WITH µITRON SPECIFICATIONS SOFTUNETM REALOSTM/FR/907/896 CONFIGURATOR MANUAL FR/F²MCTM FAMILY IN CONFORMANCE WITH µITRON SPECIFICATIONS SOFTUNETM REALOSTM/FR/907/896 CONFIGURATOR MANUAL FUJITSU LIMITED PREFACE ■ Objectives and Intended Readership SOFTUNE REALOS (hereafter called REALOS/FR) is a real-time operating system that runs on Fujitsu FR/F2MC-16/F2MC-8L family controllers and microcontrollers. The SOFTUNE REALOS/ FR kernel specifications comply with the µITRON 3.0 specifications. The SOFTUNE REALOS/ 907/896 kernel specifications comply with the µITRON 2.0 specifications. This manual is intended for engineers who develop products using SOFTUNE REALOS. The manual describes the functions and operation of the SOFTUNE REALOS configurator. Read this manual as a reference. The configurator is software that runs on Windows XP, Windows Me, Windows 2000, Windows 98 and Windows NT 4.0. Readers of this manual should have a fundamental knowledge of the operations of Windows XP, Windows Me, Windows 2000, Windows 98 or Windows NT 4.0 and a basic understanding of the use of embedded software. ■ Trademarks TRON is an abbreviation of “The Real-time Operating system Nucleus.” ITRON is an abbreviation of “Industrial TRON.” µITRON is an abbreviation of “Micro Industrial TRON.” SOFTUNE is a trademark of FUJITSU LIMITED. REALOS (REALtime Operating System) is a trademark of FUJITSU LIMITED. Microsoft, Windows, Windows NT and MS-DOS are registered trademarks of Microsoft Corporation in the U.S. and other countries. The names of products and systems appearing in this manual are trademarks or registered trademarks of their respective companies.
    [Show full text]
  • EECS 373 Design of Microprocessor-Based Systems
    EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 2: Architecture, Assembly, and ABI January 13, 2015 Slides developed in part by Mark Brehob 1 Announcements • Website up – http://www.eecs.umich.edu/~prabal/teaching/eecs373/ • Homework 2 posted (mostly a 370 review) • Lab and office hours posted on-line. – My office hours: Thursday 3:00-4:00 pm in 4773 BBB • Projects – Start thinking about them now! 2 Today… Finish ARM assembly example from last time Walk though of the ARM ISA Software Development Tool Flow Application Binary Interface (ABI) 3 Major elements of an Instruction Set Architecture (registers, memory, word size, endianess, conditions, instructions, addressing modes) 32-bits 32-bits ! !mov!r0,!#4! ! !ldr!r1,![r0,#8]! ! !!!!!!r1=mem((r0)+8)! ! !bne!loop! ! !subs!r2,!#1! Endianess Endianess 4 The endianess religious war: 288 years and counting! • Modern version • Little-Endian – Danny Cohen – LSB is at lower address !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Memory!!!!!Value! – IEEE Computer, v14, #10 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Offset!!(LSB)!(MSB)! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!======!!===========! uint8_t!a!!=!1;!!!!!!!!!!!!!!!0x0000!!01!02!FF!00! – Published in 1981 uint8_t!b!!=!2;! uint16_t!c!=!255;!//!0x00FF! – Satire on CS religious war uint32_t!d!=!0x12345678;!!!!!!0x0004!!78!56!34!12! • Historical Inspiration • Big-Endian – Jonathan Swift – MSB is at lower address !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Memory!!!!!Value! – Gulliver's Travels !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Offset!!(LSB)!(MSB)! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!======!!===========!
    [Show full text]
  • Lecture 01.1: Organization & Introduction
    Organization Organization 2 Organization Course Goals Learn to write good C++ • Basic syntax • Common idioms and best practices Learn to implement large systems with C++ • C++ standard library and Linux ecosystem • Tools and techniques (building, debugging, etc.) Learn to write high-performance code with C++ • Multithreading and synchronization • Performance pitfalls 3 Organization Formal Prerequisites Knowledge equivalent to the lectures • Introduction to Informatics 1 (IN0001) • Fundamentals of Programming (IN0002) • Fundamentals of Algorithms and Data Structures (IN0007) Additional formal prerequisites (B.Sc. Informatics) • Introduction to Computer Architecture (IN0004) • Basic Principles: Operating Systems and System Software (IN0009) Additional formal prerequisites (B.Sc. Games Engineering) • Operating Systems and Hardware oriented Programming for Games (IN0034) 4 Organization Practical Prerequisites Practical prerequisites • No previous experience with C or C++ required • Familiarity with another general-purpose programming language Operating System • Working Linux operating system (e.g. Ubuntu) • Basic experience with Linux (in particular with shell) • You are free to use your favorite OS, we only support Linux 5 Organization Lecture & Tutorial • Lecture: Tuesday, 14:00 – 16:00, MI 02.11.018 • Tutorial: Friday, 10:00 – 12:00, MI 02.11.018 • Discuss assignments and any questions • First two tutorials are additional lectures • Attendance is mandatory • Announcements on the website and Mattermost 6 Organization Assignments • Brief
    [Show full text]