Target Language Compiler Reference Guide  COPYRIGHT 1997 - 2002 by the Mathworks, Inc

Total Page:16

File Type:pdf, Size:1020Kb

Target Language Compiler Reference Guide  COPYRIGHT 1997 - 2002 by the Mathworks, Inc Target Language Compiler™ For Use with Real-Time Workshop® Modeling Simulation Implementation Reference Guide Version 5 How to Contact The MathWorks: www.mathworks.com Web comp.soft-sys.matlab Newsgroup [email protected] Technical support [email protected] Product enhancement suggestions [email protected] Bug reports [email protected] Documentation error reports [email protected] Order status, license renewals, passcodes [email protected] Sales, pricing, and general information 508-647-7000 Phone 508-647-7001 Fax The MathWorks, Inc. Mail 3 Apple Hill Drive Natick, MA 01760-2098 For contact information about worldwide offices, see the MathWorks Web site. Target Language Compiler Reference Guide COPYRIGHT 1997 - 2002 by The MathWorks, Inc. The software described in this document is furnished under a license agreement. The software may be used or copied only under the terms of the license agreement. No part of this manual may be photocopied or repro- duced in any form without prior written consent from The MathWorks, Inc. FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation by or for the federal government of the United States. By accepting delivery of the Program, the government hereby agrees that this software qualifies as "commercial" computer software within the meaning of FAR Part 12.212, DFARS Part 227.7202-1, DFARS Part 227.7202-3, DFARS Part 252.227-7013, and DFARS Part 252.227-7014. The terms and conditions of The MathWorks, Inc. Software License Agreement shall pertain to the government’s use and disclosure of the Program and Documentation, and shall supersede any conflicting contractual terms or conditions. If this license fails to meet the government’s minimum needs or is inconsistent in any respect with federal procurement law, the government agrees to return the Program and Documentation, unused, to MathWorks. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and TargetBox is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders. Printing History: May 1997 First printing New for Target Language Compiler 1.0 September 2000 Online only Updated for Version 4 (Release 12) April 2001 Online only Updated for Version 4.1 (Release 12.1) July 2002 Online only Updated for Version 5.0 (Release 13) Contents Introducing the Target Language Compiler 1 Introduction . 1-2 Overview of the TLC Process . 1-3 Overview of the Code Generation Process . 1-5 Capabilities . 1-7 Customizing Output . 1-7 Inlining S-Functions . 1-7 Code Generation Process . 1-9 How TLC Determines S-Function Inlining Status . 1-9 A Look at Inlined and Noninlined S-Function Code . 1-10 Advantages of Inlining S-Functions . 1-13 Motivations . 1-13 Inlining Process . 1-14 Search Algorithm for Locating Target Files . 1-15 Availability for Inlining and Noninlining . 1-15 New Features and Compatibility Issues in Versions 4.0, 4.1, and 5.0 . 1-16 New Features Added in Version 5.0 . 1-16 New Features Added in Version 4.1 . 1-17 New Features Added in Version 4.0 . 1-18 Compatibility Issues . 1-19 Where to Go from Here . 1-23 Related Manuals . 1-23 i Getting Started 2 Code Architecture . 2-2 model.rtw and Target Language Compiler Overview . 2-4 The Target Language Compiler Process . 2-4 Inlining S-Function Concepts . 2-6 Noninlined S-Function . 2-6 Types of Inlining . 2-7 Fully Inlined S-Function Example . 2-8 Wrapper Inlined S-Function Example . 2-10 A TLC Tutorial 3 Introduction . 3-2 Reading Record Files with TLC . 3-3 Structure of Record Files . 3-3 Interpreting Records . 3-4 Anatomy of a TLC Script . 3-6 Modify read-guide.tlc . 3-13 Processing model.rtw Files with TLC Scripts . 3-18 Getting Started . 3-18 Counting Blocks and Subsystems . 3-19 Listing Block Names . 3-21 Passing and Using a Parameter . 3-22 Inlining S-Functions with TLC . 3-25 Noninlined Code Generation . 3-25 Why Use TLC to Implement S-functions? . 3-27 Creating an Inlined S-Function . 3-28 Scalar or Vector, It’s the Same . 3-31 ii Contents Exploring Variable Names and Loop Rolling . 3-32 Getting Started . 3-32 Modify the Model . 3-33 Change the Loop Rolling Threshold . 3-35 More on TLC Loop Rolling . 3-37 Debugging Your TLC Code . 3-40 Getting Started . 3-40 Generate and Run Code from the Model . 3-42 Start the Debugger and Explore Commands . 3-44 Debug gain.tlc . 3-45 Fix the Bug and Verify the Fix . 3-47 Using TLC Code Coverage to Aid Debugging . 3-49 Getting Started . 3-49 Open the Model and Generate Code . 3-50 Log Without Inline Parameters . 3-51 Wrapping User Code with TLC . 3-53 Why Wrap? . 3-53 Getting Started . 3-55 Generate Code Without a Wrapper . 3-56 Generate Code Using a Wrapper . 3-59 Code Generation Architecture 4 Build Process . 4-2 A Basic Example . 4-2 Invoking Code Generation . 4-9 The rtwgen Command . 4-9 The tlc Command . 4-9 Configuring TLC . 4-11 iii Code Generation Concepts . 4-13 Output Streams . 4-13 Variable Types . 4-14 Records . 4-14 Record Aliases . 4-16 TLC Files . 4-19 Available Target Files . 4-19 Summary of Target File Usage . 4-23 System Target Files . 4-24 Block Target Files . 4-25 Block Target File Mapping . 4-26 Data Handling with TLC: An Example . 4-27 Matrix Parameters in Real-Time Workshop . 4-27 Contents of model.rtw 5 Model.rtw File Overview . 5-2 Using Scopes in the model.rtw File . 5-3 Object Information in the model.rtw File . 5-6 Using Library Functions to Access model.rtw Contents . 5-10 Caution Against Directly Accessing Record Fields . 5-10 Exception to Using the Library Functions . 5-11 Directives and Built-in Functions 6 Compiler Directives . 6-2 Syntax . 6-2 Comments . 6-17 Line Continuation . 6-18 iv Contents Target Language Values . 6-19 Target Language Expressions . 6-21 Formatting . 6-27 Conditional Inclusion . 6-28 Multiple Inclusion . ..
Recommended publications
  • Eurosim Mk7.1 Software User's Manual
    EuroSim Mk7.1 Software User’s Manual iss: 8 rev: 1 SUM NLR-EFO-SUM-2 Summary EuroSim Mk7.1 is an engineering simulator framework to support the quick development of hard real- time simulators. EuroSim provides a reconfigurable real-time execution environment with the possibility of man-in-the-loop and/or hardware-in-the-loop additions. Extensive Graphical User Interfaces assist the user in constructing, using and analysing real-time simulations, resolving the user from the specialist software engineering knowledge required to built hard real-time systems. EuroSim has been developed initially to support the verification of space (sub) systems defined by ESA programmes of various scales. It’s heritage lies in the development of the European Robotic Arm(ERA) project where EuroSim was essential in the development and verification of the large symmetrical arm that can move accross the International Space Station. Up to today, EuroSim installations are still used around the world to support ERA’s mission preparation, verification and training. After initial devel- opment and application for ERA, EuroSim has been succesfully used in the development, verification and training of the Autonomous Transfer Vehicle (ATV) with multiple installations worldwide. Other space programs where EuroSim has been applied since are Galileo, Herschel & Planck, Gaia to name a few major missions. Currently EuroSim has made its way in to other domains as well, with application in the F-35 Lightning-II Embedded Training program and simulations in support of road tunnel system verification. This document contains both the User Guide as well as the Reference Guide documentation and consists of five volumes.
    [Show full text]
  • CONCLUSIONES DEL ABOGADO GENERAL SR. PEDRO CRUZ VILLALÓN Presentadas El 14 De Abril De 2011 1
    CONCLUSIONES DEL SR. CRUZ VILLALÓN — ASUNTO C-70/10 CONCLUSIONES DEL ABOGADO GENERAL SR. PEDRO CRUZ VILLALÓN presentadas el 14 de abril de 2011 1 Índice I. Introducción ................................................................... I - 11964 II. Marco jurídico ................................................................. I - 11967 A. Derecho de la Unión ....................................................... I - 11967 1. Normativa en materia de protección de la propiedad intelectual ............. I - 11967 a) Directiva 2001/29 relativa a la armonización de determinados aspectos de los derechos de autor y derechos afines a los derechos de autor en la sociedad de la información ......................................... I - 11967 b) Directiva 2004/48 relativa al respeto de los derechos de propiedad intelec- tual . I - 11968 2. Normativa en materia de protección de datos personales ................... I - 11969 a) Directiva 95/46 relativa a la protección de las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos . I - 11969 b) Directiva 2002/58 relativa al tratamiento de los datos personales y a la protección de la intimidad en el sector de las comunicaciones electróni- cas . I - 11969 3. Normativa en materia de comercio electrónico: Directiva 2000/31 ........... I - 11970 B. Derecho nacional . I - 11970 1 — Lengua original: francés. I - 11962 SCARLET EXTENDED III. Hechos que dieron lugar al litigio principal y cuestiones prejudiciales ................. I - 11971 A. Hechos
    [Show full text]
  • Spyglassfall2015.Pdf
    1 THERE ARE MANY WAYS TO TELL A STORY. Part of our mission is to keep alive the maritime history of our Nation’s Oldest PortSM by telling its stories. Well, we have two important stories to tell in our new exhibit, Wrecked!, which will be opening in May 2016. We want everyone, especially our young- est visitors, to be able to connect with this unique shipwreck story and with the archaeological side of discovering, exca- vating and conserving shipwrecks. That’s why we have added a new storyteller to our Lighthouse family—Star Waters! Star is a curious, adventerous young student who will inspire a whole new generation of underwater archaeologists and explorers. Throughout the Wrecked! exhibit, you’ll see a series of vignettes called “Star Waters Wonders” which will ask questions that provoke our young guests to think more in-depth about science, history, math, and engineering. So let our friend Star give you a sneak peek of the new exhibit (which is unlike anything you have ever seen at our Museum) in this special issue! 2 Dear Members, We have so much to be thankful for this holiday season. The blessing of being busy is always with us. We are about to break ground on a new Maritime Archaeology & Education Center with public viewing areas for shipwreck artifacts and handicap accessible learning spaces. A new exhibit is coming in the spring. Luminary Night is coming December 2nd! Our membership is larger than ever! We are thankful for the privilege to work for you. We are blessed to know and serve you.
    [Show full text]
  • Issues in the Design and Implementation of a Real-Time Garbage Collection Architecture " (1992)
    Iowa State University Capstones, Theses and Retrospective Theses and Dissertations Dissertations 1992 Issues in the design and implementation of a real- time garbage collection architecture William Jon Schmidt Iowa State University Follow this and additional works at: https://lib.dr.iastate.edu/rtd Part of the Computer Sciences Commons Recommended Citation Schmidt, William Jon, "Issues in the design and implementation of a real-time garbage collection architecture " (1992). Retrospective Theses and Dissertations. 10388. https://lib.dr.iastate.edu/rtd/10388 This Dissertation is brought to you for free and open access by the Iowa State University Capstones, Theses and Dissertations at Iowa State University Digital Repository. It has been accepted for inclusion in Retrospective Theses and Dissertations by an authorized administrator of Iowa State University Digital Repository. For more information, please contact [email protected]. INFORMATION TO USERS This manuscript has been reproduced from the microfilm master. UMI films the text directly from the original or copy submitted. Thus, some thesis and dissertation copies are in typewriter face, while others may be from any type of computer printer. The quality of this reproduction is dependent upon the quality of the copy submitted. Broken or indistinct print, colored or poor quality illustrations and photographs, print bleedthrough, substandard margins, and improper aligrmient can adversely affect reproduction. In the unlikely event that the author did not send UMI a complete manuscript and there are missing pages, these will be noted. Also, if unauthorized copyright material had to be removed, a note will indicate the deletion. Oversize materials (e.g., maps, drawings, charts) are reproduced by sectioning the original, beginning at the upper left-hand corner and continuing from left to right in equal sections with small overlaps.
    [Show full text]
  • Protection and Restriction to the Internet
    Protection and restriction to the internet Dear wireless users, To allow all our users to enjoy quality browsing experience, our firewall has been configured to filter websites/applications to safeguards the interests of our student community in ensuring uninterrupted access to the Internet for academic purposes. In the process of doing this, the firewall will block access to the applications listed in the table below during peak hours ( Weekdays: 8:30am to 5pm ) which: o may potentially pose security hazards o result in excessive use of bandwidth, thereby reducing access to online and educational resources by the larger student community o could potentially result in violation of Malaysian Laws relating to improper and illegal use of the Internet Nevertheless, you may access the restricted websites/applications if they do not potentially pose any security hazards or violation of Malaysian law from our lab computers during our operation hours (Weekdays: 8:30am – 9:30pm) or you may access via the wireless@ucti or wireless@APU network from your mobile devices after the peak hours. Internet services provided by the University should mainly be used for collaborative, educational and research purposes in support of academic activities carried out by students and staff. However, if there are certain web services which are essential to students' learning, please approach Technology Services to discuss how access could be granted by emailing to [email protected] from your university email with the following details: • Restricted website/application
    [Show full text]
  • Xtext User Guide
    Xtext User Guide Xtext User Guide Heiko Behrens, Michael Clay, Sven Efftinge, Moritz Eysholdt, Peter Friese, Jan Köhnlein, Knut Wannheden, Sebastian Zarnekow and contributors Copyright 2008 - 2010 Xtext 1.0 1 1. Overview .................................................................................................................... 1 1.1. What is Xtext? ................................................................................................... 1 1.2. How Does It Work? ............................................................................................ 1 1.3. Xtext is Highly Configurable ................................................................................ 1 1.4. Who Uses Xtext? ................................................................................................ 1 1.5. Who is Behind Xtext? ......................................................................................... 1 1.6. What is a Domain-Specific Language ..................................................................... 2 2. Getting Started ............................................................................................................ 3 2.1. Creating a DSL .................................................................................................. 3 2.1.1. Create an Xtext Project ............................................................................. 3 2.1.2. Project Layout ......................................................................................... 4 2.1.3. Build Your Own Grammar ........................................................................
    [Show full text]
  • O Conteúdo Deste Arquivo Provém Originalmente Do Site Na Internet Da
    O conteúdo deste arquivo provém originalmente do site na internet da Corte de Justiça da União Europeia e estava armazenado sob o seguinte endereço no dia 15 de abril de 2011: http://curia.europa.eu/jurisp/cgi-bin/form.pl?lang=EN&Submit=rechercher&numaff=C-70/10 CONCLUSIONS DE L’AVOCAT GÉNÉRAL M. PEDRO CRUZ VILLALÓN présentées le 14 avril 2011 (1) Affaire C-70/10 Scarlet Extended SA contre Société belge des auteurs compositeurs et éditeurs (Sabam) en présence de: Belgian Entertainement Association Video ASBL (BEA Video), Belgian Entertainement Association Music ASBL (BEA Music), Internet Service Provider Association ASBL (ISPA), [demande de décision préjudicielle formée par la cour d’appel de Bruxelles (Belgique)] «Société de l’information – Droits de propriété intellectuelle – Directive 2004/48/CE – Droit d’auteur et droits voisins – Directive 2001/29/CE – Téléchargement illégal sur Internet – Échanges de fichiers au moyen de logiciels ‘peer-to-peer’ – Système de filtrage des communications électroniques – Mécanisme de blocage des fichiers échangés en violation de droits de propriété intellectuelle – Droit au respect de la vie privée – Protection des données personnelles – Articles 7 et 8 de la charte – Article 8 de la CEDH – Directive 95/46/CE – Directive 2002/58/CE – Confidentialité des communications – Droit à la liberté d’expression – Article 11 de la charte – Article 10 de la CEDH – Responsabilité des prestataires intermédiaires de services – Obligation générale de surveillance des informations – Directive 2000/31/CE – État de droit – Limitation des droits et libertés ‘prévue par la loi’ – Qualité de la loi – Prééminence du droit» I – Introduction II – Le cadre juridique A – Le droit de l’Union 1.
    [Show full text]
  • Panda Gatedefender Performa
    Documento de descripción del producto Panda GateDefender Performa Documento de Descripción del producto Panda GateDefender Performa 1. Ficha del producto .................................................... 4 1.1. Nombre ....................................................................... 4 1.2. Definiciones ................................................................. 4 1.2.1. 25 palabras .......................................................................... 4 1.2.2. 50 palabras .......................................................................... 4 1.2.3. 100 palabras ........................................................................ 4 1.2.4. 150 palabras ........................................................................ 4 1.3. Modelos....................................................................... 5 1.4. Módulos comercializados................................................ 5 1.5. Slogan......................................................................... 5 1.6. Beneficios .................................................................... 5 1.7. Características destacables ............................................ 6 1.7.1. Protección Completa .............................................................. 6 1.7.2. Estructura Modular ................................................................ 6 1.7.3. Alto Rendimiento................................................................... 7 1.7.4. Auto Actualizaciones .............................................................. 7 1.7.5.
    [Show full text]
  • Software User Manual (PDF)
    EuroSim Mk5.0-pl5 Software User’s Manual National Aerospace Laboratory NLR iss: 6 rev: 0 SUM NLR-EFO-SUM-2 Summary EuroSim Mk5.0-pl5 is an engineering simulator to support the design, development and verification of space (sub) systems defined by ESA programmes of various scales. The facility provides a reconfigurable real-time execution environment with the possibility of man-in-the-loop and/or hardware-in-the-loop additions. This document describes the facilities available for usage in EuroSim Mk5.0-pl5, and how those facilities can be used. c Copyright Dutch Space BV All rights reserved. Disclosure to third parties of this document or any part thereof, or the use of any information contained therein for purposes other than provided for by this document, is not permitted, except with the prior and express written permission of Dutch Space BV, PO Box 32070, 2303 DB, Leiden, The Netherlands. ii c Dutch Space BV NLR-EFO-SUM-2 SUM iss: 6 rev: 0 Table of Contents c Dutch Space BV iii NLR-EFO-SUM-2 SUM iss: 6 rev: 0 Table of Contentsv I EuroSim Basics1 1 Introduction 3 1.1 Purpose...........................................3 1.2 Scope............................................3 1.3 Where to start........................................3 1.4 Document conventions...................................4 2 Concepts 5 2.1 EuroSim simulation life-cycle...............................5 2.2 Simulator elements.....................................6 2.2.1 The model.....................................6 2.2.2 Tasks and schedule.................................6
    [Show full text]
  • 5583 B (1E) G*6'E YALSIYBIMSPATINTU BITIRAS \H7 (12)PATENTO Apnasvuas
    lxsler^ .qos (10)LT 5583 B (1e) g*6'E YALSIYBIMSPATINTU BITIRAS \H7 (12)PATENTO APnASVUAS (11) Patentonumeris: 5583 (51) Int.Cl. (2006): G01B 15/00 (21) Parai5kosnumeris: 2OO7O7O (22) Parai5kospadavimo data: 2OO711 20 (41) Parai5kospaskelbimo data: 2009 03 25 (45) Patentopaskelbimo data: 2009 07 27 (62) ParaiSkos,i5kurios dokumentas i5skirtas, numeris: (86) TarptautindsparaiSkos numeris: (86) Tarptautindsparai5kos padavimo data: (85) NacionalinioPCT lygioprocedUros pradZios data: (30) Prioritetas: P-06-128,2006 11 21, LV (72) l5radejas: DainisUSINS, LV (73) Patentosavininkas: RENESANSE PLUS, SlA, PulkvelaBrielalela4-2, LV-2015 J0rmala, LV (74) Patentinis patikdtin is/atstovas: m TatjanaSTERLINA, UAB ,,lntels", Naugarduko 9.3212, LT-03225 Vilnius, LT CY} @ ro (54) Pavadinimas: to Kompiuteriniqtinklq vartotojqelgesio kontrol6s bUdas F J (57) Referatas: lSradimaspriklauso kompiuterindmssistemoms. Budas iSsiskiriatuo, kad vartotojo kompiuteris(U) sujungiamassu prieigossistemos serveriu (AS), kuris atitinkamaisujungtas su HUB serveriqsistemos HUB serveriais (H) ir registracijosbloku (RB). BUdas vykdomas nuosekliai tam tikrais veiksmais: vartotojo indentifikacijosduomenq nusiuntimasi5 vartotojokompiuterio (U) j prieigossistemos serverj (AS); duomenq nusiuntimasnuo prieigos sistemos serverio j registracijosblokq (RB); vartotojo identifikaciniq duomenq autenti5kumopatikrinimas ir vartotojoprieigos teisiq nustatymas, lyginant su registracijosbloke (RB) tam tikroje lenteldjearba lentel6se(T1) esandiaisduomenimis; sujungimo su vartotojouZsakytu
    [Show full text]
  • Software User Manual (PDF)
    EuroSim Mk4.1 Software User’s Manual National Aerospace Laboratory NLR iss: 5 rev: 1 SUM NLR-EFO-SUM-2 Summary EuroSim Mk4.1 is an engineering simulator to support the design, development and verification of space (sub) systems defined by ESA programmes of various scales. The facility provides a reconfigurable real-time execution environment with the possibility of man-in-the-loop and/or hardware-in-the-loop additions. This document describes the facilities available for usage in EuroSim Mk4.1, and how those facilities can be used. c Copyright Dutch Space BV All rights reserved. Disclosure to third parties of this document or any part thereof, or the use of any information contained therein for purposes other than provided for by this document, is not permitted, except with the prior and express written permission of Dutch Space BV, PO Box 32070, 2303 DB, Leiden, The Netherlands. ii c Dutch Space BV NLR-EFO-SUM-2 SUM iss: 5 rev: 1 Revision Record Issue Revision Date Reason for change Changes 0 1 11-Mar-1994 Document creation; internal distribution only. All pages. 0 2 10-Apr-1994 Update to expand contents and take into account internal comments. 0 3 15-Dec-1994 Completely updated for Mk0.1. All pages. 0 4 7-Feb-1995 Continued updating of issue 0 revision 3. All pages. 0 5 25-Apr-1995 Issued for DD/R EuroSim Mk0.1. All pages. SR/R-1-RID-SRD-74, SR/R-2-RID-SRD-5, AD/R-2-RID-Model ICD-2, AD/R-2-RID-Model ICD-3, AD/R-2-RID-SRD-3, AD/R-2-RID-SUM-2.
    [Show full text]
  • Page 1 of 34 23/04/2011
    Page 1 of 34 AVIS JURIDIQUE IMPORTANT: Les informations qui figurent sur ce site sont soumises à une clause de "non-responsabilité" et sont protégées par un copyright. CONCLUSIONS DE L’AVOCAT GÉNÉRAL M. PEDRO CRUZ VILLALÓN présentées le 14 avril 2011 (1) Affaire C-70/10 Scarlet Extended SA contre Société belge des auteurs compositeurs et éditeurs (Sabam) en présence de: Belgian Entertainement Association Video ASBL (BEA Video), Belgian Entertainement Association Music ASBL (BEA Music), Internet Service Provider Association ASBL (ISPA), [demande de décision préjudicielle formée par la cour d’appel de Bruxelles (Belgique)] «Société de l’information – Droits de propriété intellectuelle – Directive 2004/48/CE – Droit d’auteur et droits voisins – Directive 2001/29/CE – Téléchargement illégal sur Internet – Échanges de fichiers au moyen de logiciels ‘peer-to-peer’ – Système de filtrage des communications électroniques – Mécanisme de blocage des fichiers échangés en violation de droits de propriété intellectuelle – Droit au respect de la vie privée – Protection des données personnelles – Articles 7 et 8 de la charte – Article 8 de la CEDH – Directive 95/46/CE – Directive 2002/58/CE – Confidentialité des communications – Droit à la liberté d’expression – Article 11 de la charte – Article 10 de la CEDH – Responsabilité des prestataires intermédiaires de services – Obligation générale de surveillance des informations – Directive 2000/31/CE – État de droit – Limitation des droits et libertés ‘prévue par la loi’ – Qualité de la loi – Prééminence du droit» I – Introduction II – Le cadre juridique A – Le droit de l’Union 1. La réglementation relative à la protection de la propriété intellectuelle a) La directive 2001/29 sur l’harmonisation de certains aspects du droit d’auteur et des droits voisins dans la société de l’information b) La directive 2004/48 relative au respect des droits de propriété intellectuelle 2.
    [Show full text]