Creative Computing Magazine (November 1981) Volume 07 Number 11

Total Page:16

File Type:pdf, Size:1020Kb

Creative Computing Magazine (November 1981) Volume 07 Number 11 : November 1981 vol 7, no 11 $2.50 GPeative 140-44 Gompuking the #2 magazine of computer applications and software Getting Started With IBM Personal an Apple or TRS-80 Computer The Big Blue Giant Atari Color Explained Makes Its Move Evaluations: • Bridge Challenger • New Apple Games • Crypto Machine • Raster Blaster %w^ • Soundchaser • Air Combat Sneak Preview of the Sinclair ZX81 Ted Nelson Electronic Mail — 5& What's Coming Authoring Systems 1 1 76956 14044" . Comm Ill re Software Encyclopedia The COMMODORE The next edition of the not listed and you would SOFTWARE COMMODORE like to have it listed in ENCYCLOPEDIA is SOFTWARE the next edition, please now available from ENCYCLOPEDIA will be submit details to: your authorized available in 90 to 120 Software Department COMMODORE Dealer, days. If your software is Commodore Business for . Machines, Inc. Computer Systems $495 Division 300 Valley Forge Square, 681 Moore Road, King of Prussia, lOT^OpOTE PA 19406. HOTLINE Number EtataJbPEDi^ 1-800-523-5622 £s commodore CIRCLE 1 20 ON READER SERVICE CARD — " — fountain Computer CPS Multifunction CardTM e Only Interface Card You Need! Connecting a Parallel Printer? Connect with Easy Use! Epson®. Centronics®- IDS Paper Tiger? CPS handles all these CPS has no switches to set! All functions on the card are set printers and others with on-board intelligence to provide from a user program. Menu driven screens set up your choice paging and other features found on no other card. of all functions on CPS and store them on-board in CMOS RAM— battery backed-up (including the clock) for over two Connecting a Serial Printer? years! To change parameters, run the set-up program again—or use special commands from your kevboard. Furthermore, most • printers Diablo® Qume® NEC TI 800 Series®CPS handles these existing software programs are immediately usable with CPS. and others with standard RS-232 interface providing selection Phantom Slot Capability permits assignment of CPS' functions of rates, baud handshakes, paging, and more. to your software's pre-defined slots. Connecting a Modem or Terminal? Haves Smartmodem® Novation CAT®M fc R Pennywhistle®CPS handles these and others with full half duplex operation, baud Connect with Your Apple^Dealer rate selection, and even a transparent terminal mode which Drop by your Apple dealer and see how the CPS MultiFunc tion includes a dual mode feature that permits printing of text to Card provides the most comprehensive capabilities for RS-232C parallel printers while 'on-line' eliminating the need for special serial interface, parallel output, and real-time calendar/clock terminal software—and more. of any card available today all on one card—at one low price competitive with any one of the three or more single function Connecting with the Time? cards that it replaces. The on-board calendar clock provides real time and date information including day of week, day, month, year, hours, minutes, and seconds for any application requiring a time Mountain Computer I N COBPOB ATI D stamp—battery backed-up for over two years! * 300 El Pueblo Road. Scotts Valley, CA 95066 Connecting with The Source? (408) 438-6650 TWX: 910 598-4504 CIRCLE 191 ON READER SERVICE CARD I'sed with a modem, CPS provides the connection to informa- tion utilities, such as The Source? Dow Jones, and others. Additionally, CPS provides the connection to big-time electronic mail with programs such as Micro Courierand Micro Telegram? and other data transfer programs. >V Registered trademarks THE FIRST SUPER-SIMPLE LETTER QUALITY WORD PROCESSOR IN THE WORLD THAT CAN SIT NEXT TO YOUR SECRETARY- FOR LESS THAN $5,000. "Wordsworth™" removes the like general ledgers and accounting fear and loathing many people have reports, using easily available about things called "computers" industry-compatible CP/M™ software. and "word processing." Because Installation? Plug it in. (Cable Wordsworth just sits at a desk and supplied.) does what he's told. With unique new, Size? Bigger than a breadbox— simplified software, it can tell its but not by much. It's about half as big, typist what to do—step by simple or less, than systems that can't do half step— to perform even the most as much. Definitely desktop—a sub- complicated tasks. compact 20" by 40". It can not only "take a letter," Service? Available everywhere. but it can revise it, customize it in mil- Price? About $4,995. Complete lions of ways (quite literally), person- and ready to go. alize it, print it on your letterhead or For the name of your nearest business form so you can't tell it from dealer— and a free hands-on hand-typed ... in short, everything demonstration—just pick up the but put it in an envelope. nearest telephone. Moreover, it can perform all TOLL-FREE 1-600-343-6603. sorts of business functions, mundane In Hum bnatt*, . .ill ...n.-.t dii7) 111 IIW Un 961 B24. LEADING edge: Leading Edge Products, Inc., 225 Turnpike Street, Canton, Massachusetts 02021 DEALERS: For immediate delivery from the Leading Edge Inventory Bank!" on "Wordsworth" and other of the industry's most popular products, just give us a call. CIRCLE 182 ON READER SERVICE CARD " fi I »*/ ns & software 1 84 Periodic Table Schmidt 1 86 Grammar Rudeen evaluations & profiles A program to create your own 1 A The IBM Personal Computer Staples PET Screen Llne Length Picciotto The perfect computer? 1 92 Solving the problems of a 40-character line Soundchaser 20 Lubar Shared Appreciation Mortgage Crawford Passport 200 to great Apple sound Can it save you money? Sinclair ZX81 26 Tebbutt 21 A Wo*1*1 Generator for "Traveller" Marvel New from England 34 Authoring Systems Lubar 232 Building a Better Input Ashwell Apple programming made easy? 236ww Short Proor8m« Buchanan & Shapiro 40 APP,esoft Compilers Herman TRS-80 keyboard repeat and Apple disk catalog A comparative review How to ,! 238 So,v* Piole 50 Assembly Language Programming Greene Digital didactics A course from Heath 54 Home Financial Decisions Rowe A new module for the Tl 99/4 I M% m to.ents Computer Air Combat 58 Archibald 6 Notices Fee Monday night at the flights "| Input/Output Readers R2 Raster Blaster Archibald Flipping out 24 D«**line: Tomorrow Ahl News and views 64 Bridge Challenger Linderholm 250 Appl° Cart Carpenter 68 Crypto Machine Miller Getting started: hardware, software, printers Apple/UCSD Pascal 1.1 Tonkens ut K>8,: Atari 77 258 ° ' SmallA Small A user's evaluation How the Atari handles color 7g Zgrass Meeks 262 TRS-80 Strings Gray A language for graphics users Getting started, CRT filters, and a drunk snake 33 New Games for the Apple Lubar 270 Puzzles a Problems Townsend 272 Software Legal Forum Bayer articles 276 Now Products Staples Q4 Tower of Babel Blank A tourist's guide to computer languages 288 Index to Advertisers 1 06 Boxes Miner A structured spatial language Il|#D r*r)\}£>f) A r u m°r laid to rest: IBM has *> l^UVv#i announced it's long-awaited entry Pascal Ada and Computer Literacy 116 < Ahl into the personal computer market. See page 14 for details on Interview with Arthur Luehrmann the IBM Personal Computer. J 24 Tnreo Roads to Pascal Lubar Learning "the language of the future'' NOVEMBER, 1981 The MaQ icians, The Snark & The Camel Nelson -\ 28 VOLUME 7, NUMBER 11 Report on the Electronic Mail and Message Conference Creative Computing (ISSN 0097-8140) is published monthly by Creative Computing P Basic and Pascal Evans O Box 789-M. Morristown. NJ 07960 Second Class postage paid at Lincoln NE "| 58 68501 side-by-side comparison A Editorial offices located at 39 East Hanover Ave . Morris Plains. NJ 07950 Phone (201)540-0445 1 66 Basic Beats Pascal Ever Domestic Subscriptions 12 issues $20. 24 issues $37; 36 issues $53 Send subscription orders or change of address (P O Form 3575) to Creative Computing PO Box 789-M. Morristown. NJ 07960 Call 800-631-8112 toll-free (in New 1 Trilingual Tutorial Horn 74 Jersey call 201-540-0445) to order a subscription (to be charged only to a bank Basic, Basex, and Z80 Assembly Language card) Copynght©1961 by Creative Computing All rights reserved Reproduction prohibited Printed in USA Model I and Model II Look Alikes Cesaitas 1 82 ROM Creative Computing is printed by Mid-America Webpress. Lincoln. NE 68501 NOVEMBER 1981 staff advertising sales foreign customers Publisher/Editor-in-Chief David H. Ahl Advertising Coordinator Foreign subscribers in countries listed below Christman elect to subscribe with our local agents using Editorial Director George Blank Renee may Creative Computing local currency Of course, subscriptions may also Creative Computing (USA) Editor Elizabeth Staples P O Box 789-M be entered directly to Morristown. NJ 07960 in U.S. dollars (bank draft or credit card) All foreign Associate Editor David Lubar (201)540-0445 subscriptions must be prepaid. Many foreign agents stock Creative Computing Managing Editor Peter Fee Western States magazines, books, and software However, please Jules E. Thompson. Inc. inquire directly to the agent before placing an all Computing products may Contributing Editors Dale Archibald 1 290 Howard Ave.. Suite 303 order Again, Creative Charles Carpenter Burlingame. CA 94010 be ordered direct from the USA-be sure to allow Charles W. Dwyer (415)348-8222 for foreign shipping and handling Stephen B Gray In Texas call (713) 731-2605 Glenn Hart CANADA Surface Ak Stephen Kimmel Southern California 1-year C»29 n/a Harold Novick 2-year 55 n/a Jules E. Thompson. Inc. Peter Payack 3-year SO n/« 2560 Via Tejon Alvln Tottler Palos Verdes Estates.
Recommended publications
  • Improving System Security Through TCB Reduction
    Improving System Security Through TCB Reduction Bernhard Kauer March 31, 2015 Dissertation vorgelegt an der Technischen Universität Dresden Fakultät Informatik zur Erlangung des akademischen Grades Doktoringenieur (Dr.-Ing.) Erstgutachter Prof. Dr. rer. nat. Hermann Härtig Technische Universität Dresden Zweitgutachter Prof. Dr. Paulo Esteves Veríssimo University of Luxembourg Verteidigung 15.12.2014 Abstract The OS (operating system) is the primary target of todays attacks. A single exploitable defect can be sufficient to break the security of the system and give fully control over all the software on the machine. Because current operating systems are too large to be defect free, the best approach to improve the system security is to reduce their code to more manageable levels. This work shows how the security-critical part of theOS, the so called TCB (Trusted Computing Base), can be reduced from millions to less than hundred thousand lines of code to achieve these security goals. Shrinking the software stack by more than an order of magnitude is an open challenge since no single technique can currently achieve this. We therefore followed a holistic approach and improved the design as well as implementation of several system layers starting with a newOS called NOVA. NOVA provides a small TCB for both newly written applications but also for legacy code running inside virtual machines. Virtualization is thereby the key technique to ensure that compatibility requirements will not increase the minimal TCB of our system. The main contribution of this work is to show how the virtual machine monitor for NOVA was implemented with significantly less lines of code without affecting the per- formance of its guest OS.
    [Show full text]
  • User's Manual
    rBOX610 Linux Software User’s Manual Disclaimers This manual has been carefully checked and believed to contain accurate information. Axiomtek Co., Ltd. assumes no responsibility for any infringements of patents or any third party’s rights, and any liability arising from such use. Axiomtek does not warrant or assume any legal liability or responsibility for the accuracy, completeness or usefulness of any information in this document. Axiomtek does not make any commitment to update the information in this manual. Axiomtek reserves the right to change or revise this document and/or product at any time without notice. No part of this document may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Axiomtek Co., Ltd. Trademarks Acknowledgments Axiomtek is a trademark of Axiomtek Co., Ltd. ® Windows is a trademark of Microsoft Corporation. Other brand names and trademarks are the properties and registered brands of their respective owners. Copyright 2014 Axiomtek Co., Ltd. All Rights Reserved February 2014, Version A2 Printed in Taiwan ii Table of Contents Disclaimers ..................................................................................................... ii Chapter 1 Introduction ............................................. 1 1.1 Specifications ...................................................................................... 2 Chapter 2 Getting Started ......................................
    [Show full text]
  • Compiler for Tiny Register Machine
    COMPILER FOR TINY REGISTER MACHINE An Undergraduate Research Scholars Thesis by SIDIAN WU Submitted to Honors and Undergraduate Research Texas A&M University in partial fulfillment of the requirements for the designation as an UNDERGRADUATE RESEARCH SCHOLAR Approved by Research Advisor: Dr. Riccardo Bettati May 2015 Major: Computer Science TABLE OF CONTENTS Page ABSTRACT .................................................................................................................................. 1 CHAPTER I INTRODUCTION ................................................................................................ 2 II BACKGROUND .................................................................................................. 5 Tiny Register Machine .......................................................................................... 5 Computer Language syntax .................................................................................. 6 Compiler ............................................................................................................... 7 III COMPILER DESIGN ......................................................................................... 12 Symbol Table ...................................................................................................... 12 Memory Layout .................................................................................................. 12 Recursive Descent Parsing .................................................................................. 13 IV CONCLUSIONS
    [Show full text]
  • An ECMA-55 Minimal BASIC Compiler for X86-64 Linux®
    Computers 2014, 3, 69-116; doi:10.3390/computers3030069 OPEN ACCESS computers ISSN 2073-431X www.mdpi.com/journal/computers Article An ECMA-55 Minimal BASIC Compiler for x86-64 Linux® John Gatewood Ham Burapha University, Faculty of Informatics, 169 Bangsaen Road, Tambon Saensuk, Amphur Muang, Changwat Chonburi 20131, Thailand; E-mail: [email protected] Received: 24 July 2014; in revised form: 17 September 2014 / Accepted: 1 October 2014 / Published: 1 October 2014 Abstract: This paper describes a new non-optimizing compiler for the ECMA-55 Minimal BASIC language that generates x86-64 assembler code for use on the x86-64 Linux® [1] 3.x platform. The compiler was implemented in C99 and the generated assembly language is in the AT&T style and is for the GNU assembler. The generated code is stand-alone and does not require any shared libraries to run, since it makes system calls to the Linux® kernel directly. The floating point math uses the Single Instruction Multiple Data (SIMD) instructions and the compiler fully implements all of the floating point exception handling required by the ECMA-55 standard. This compiler is designed to be small, simple, and easy to understand for people who want to study a compiler that actually implements full error checking on floating point on x86-64 CPUs even if those people have little programming experience. The generated assembly code is also designed to be simple to read. Keywords: BASIC; compiler; AMD64; INTEL64; EM64T; x86-64; assembly 1. Introduction The Beginner’s All-purpose Symbolic Instruction Code (BASIC) language was invented by John G.
    [Show full text]
  • Paravirtualizing Linux in a Real-Time Hypervisor
    Paravirtualizing Linux in a real-time hypervisor Vincent Legout and Matthieu Lemerre CEA, LIST, Embedded Real Time Systems Laboratory Point courrier 172, F-91191 Gif-sur-Yvette, FRANCE {vincent.legout,matthieu.lemerre}@cea.fr ABSTRACT applications written for a fully-featured operating system This paper describes a new hypervisor built to run Linux in a such as Linux. The Anaxagoros design prevent non real- virtual machine. This hypervisor is built inside Anaxagoros, time tasks to interfere with real-time tasks, thus providing a real-time microkernel designed to execute safely hard real- the security foundation to build a hypervisor to run existing time and non real-time tasks. This allows the execution of non real-time applications. This allows current applications hard real-time tasks in parallel with Linux virtual machines to run on Anaxagoros systems without any porting effort, without interfering with the execution of the real-time tasks. opening the access to a wide range of applications. We implemented this hypervisor and compared perfor- Furthermore, modern computers are powerful enough to mances with other virtualization techniques. Our hypervisor use virtualization, even embedded processors. Virtualiza- does not yet provide high performance but gives correct re- tion has become a trendy topic of computer science, with sults and we believe the design is solid enough to guarantee its advantages like scalability or security. Thus we believe solid performances with its future implementation. that building a real-time system with guaranteed real-time performances and dense non real-time tasks is an important topic for the future of real-time systems.
    [Show full text]
  • Laboratory Experiment #1
    x86 and C refresher Lab Background: The x86 is a very widely used microprocessor, it is in Windows and Macintosh personal computers. It is important to be familiar with Intel Architecture, IA. In this lab we will be come familiar with the Intel Architecture using debuggers, assemblers, un-assemblers, and hand assembly. These tools will allow us to enter programs, assemble, execute, debug, and modify programs. Tools and techniques develop in this lab will prepare for using microcontrollers in later labs. C programs in this lab are to refresh C programming knowledge and explore C programming used in microprocessors. Also, this x86 – C refresher Lab will be preparation for using the C programming language to program microcontrollers. Objectives: To be come familiar with how microprocessors operate. To be come familiar with programming microprocessors using machine language, assembly language, and C language. To be come proficient in the use microprocessor debugging tools and techniques. To be come familiar with assemblers and their use in programming microprocessors. To understand how to hand assemble instructions for microprocessors. To understand the program development cycle (program-test-debug- modify-test-debug-repeat until done). To use tracing charts, break points, to verify and debug programs. To develop a program from a flow chart. To write documented code with flow chart and commented code. EEE174 CpE185 Laboratory S Summer 2015 X86 Lab Part 1: Introduction to Debug and C refresher Intro to DEBUG: Debug Monitor, Machine Language, and Assembly Language, Machine Instructions: MOV, SUB, ADD, JGE, INT 20h, and Debug Commands: d, e, u, r, and t Introduction: In this section, you will begin familiarizing yourself with the laboratory equipment.
    [Show full text]
  • Linux Target Image Builder Is a Tool Created by Freescale, That Is Used to Build Linux Target Images, Composed of a Set of Packages
    LLinux TTarget IImage BBuilder Based on ltib 6.4.1 ($Revision: 1.8 $ sv) Peter Van Ackeren – [email protected] Sr. Software FAE – Freescale Semiconductor Inc. TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006. LTIB Topics ► ... Philosophy ►... Command Line Options ► ... on the Intranet/Internet ►... BSP Configuration / Build ► ... Package pools ►... Configurations and Build Commands ► ... Policies ►... Working with Individual Packages ► ... Host Support ►... Patch Generation ► ... Installation ►... Publishing a BSP ► ... Directory Structure ►... Tips and Tricks ► ... Commands ►... References indicates advanced material or links for power users Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM the property of their respective owners. © Freescale Semiconductor, Inc. 2006. LTIB Philosophy ► Freescale GNU/Linux Target Image Builder is a tool created by Freescale, that is used to build Linux target images, composed of a set of packages ► LTIB has been released under the terms of the GNU General Public License (GPL) ► LTIB BSPs draw packages from a common pool. All that needs to be provided for an LTIB BSP is: 1. cross compiler 2. boot loader sources 3. kernel sources 4. kernel configuration 5. top level config file ... main.lkc 6. BSP config file ... defconfig Freescale™ and the Freescale logo are trademarks
    [Show full text]
  • C Compiler for the VERSAT Reconfigurable Processor
    1 C Compiler for the VERSAT Reconfigurable Processor Gonc¸alo R. Santos Tecnico´ Lisboa University of Lisbon Email: [email protected] Abstract—This paper describes de development of a C lan- programmable in assembly using the picoVersat instruction set. guage compiler for picoVersat. picoVersat is the hardware con- The assembler program available for program development is troller for Versat, coarse grain reconfigurable array. The compiler a cumbersome form to port existing algorithms to the Versat is developed as a back-end for the lcc retargetable compiler. The back-end uses a code selection tool for most operations, while platform, most of them written in C or C++. A compiler is some where manually coded. Assembly inline support was added essential for the test and assessement of the Versat platform to the front-end since it was missing from lcc. The compiler capabilities. A first prototype compiler, developed by Rui was integrated into a compilation framework and extensive Santiago [5], exists and was used for the development of some testing was performed. Finally, some limitations were highlighted, examples. However, the compiler is not only not very practical relating to the compiler and picoVersat usage, and some efficiency considerations were addressed. still, but also quite primitive. It supports a limited subset of the C language with C++ alike method invocation, with no Index Terms—Versat, CGRA, picoVersat, C-compiler, lcc back- variables, functions or strucutures. All programming uses the end. picoVersat register names to hold values. Furthermore, the only C++ syntax used is the method invocation from object I.
    [Show full text]
  • Understanding GCC Builtins to Develop Better Tools
    Understanding GCC Builtins to Develop Better Tools Manuel Rigger Stefan Marr Johannes Kepler University Linz University of Kent Austria United Kingdom [email protected] [email protected] Bram Adams Hanspeter Mössenböck Polytechnique Montréal Johannes Kepler University Linz Canada Austria [email protected] [email protected] ABSTRACT 1 INTRODUCTION C programs can use compiler builtins to provide functionality that Most C programs consist not only of C code, but also of other the C language lacks. On Linux, GCC provides several thousands elements, such as preprocessor directives, freestanding assembly of builtins that are also supported by other mature compilers, such code files, inline assembly, compiler pragmas, and compiler builtins. as Clang and ICC. Maintainers of other tools lack guidance on While recent studies have highlighted the role of linker scripts [20] whether and which builtins should be implemented to support pop- and inline assembly [53], compiler builtins have so far attracted ular projects. To assist tool developers who want to support GCC little attention. Builtins resemble functions or macros; however, builtins, we analyzed builtin use in 4,913 C projects from GitHub. they are not provided by libc, but are directly implemented in the We found that 37% of these projects relied on at least one builtin. compiler. The following code fragment shows the usage of a GCC Supporting an increasing proportion of projects requires support builtin that returns the number of leading zeros in an integer’s of an exponentially increasing number of builtins; however, imple- binary representation: menting only 10 builtins already covers over 30% of the projects.
    [Show full text]
  • Omni Magazine
    :'^Kfe#!«' iiB?%3l A SINGLE .'.'.*, ill. 1 SI CHALLENGING OUR r r.v ' « 3 -_j i.H OF INTELLIGENCE, EMOTION, AND INDIVIDUALITY. IT WILL CHANGE WE WORK AND THE WAYWE LIVE. THE MACHINE IS, OF COURSE, THE ROBOT A SPECIAL EDITION onnrui EDITOR & DESIGN DIRECTOH: BOB GUCCIONE PRESIDENT: KATHY KEETON EXECUTIVE EDITOR: DICK TERESI GRAPHICS D RECTOR FRANK DEVINO ART DIRECTOR' ELIZABETH WOODSON CONTENTS PAGE OMNIBUS Contributors 10 COMMUNICATIONS Correspondence -.2 FORUM Dialogue U EARTH Environment James Kilfield 18 LIFE Biomedicine Helen E. Fisher 20 SPACE Comment T. A. Heppenheimer 22 ARTIFICIAL INTELLIGENCE Computers Phoebe Hoban 30 CONTINUUM Data Bank 35 SPECIAL ROBOTICS SECTION FIRST WORD Introduction Marvin Minsky 6 ROBO-PSYCHOLOGY Mind Michael Edelhart 26 ROBOTS AND OUR JOBS Opinion Stanley Poicyn 35 ROBO-SHOCK! Article Kathleen Stem 44 AT - = ROBOTS HOME : Richard Wolkomir 70 ROBOTS: FANTASIES AND 1 REALITIES : : : Michael Edelhart 80 — JOHN McCAR Interview Philip J. Hilts 100 RO BO-SCULPTURE The Arts Marjorie B, Mann 132 LAST WORD Humor Randy Cohen 154 BLIND SHEMMY Ficlion Jack Dann 52 GENE FIXERS Article Tabitha M. Powledge 92 THE END OF THE WORLD NEWS, Part II Fiction Anthony Burgess 108 ANTIMATTER UFOs. etc. 115 '-- h ::--.~:ons Travel Doug Garr 134 BOOKS The Arts Hans Fanlel 138 CREDITS 142 NEXT OMNI J46 VAPLE LEAF Phenomena R. Hamilton SmBti 148 STARS Astronomy Patrick Moc^e 150 GAMES Diversions Scot Moms 152 Car! Fiatow. a New York-based photographer, was inspired by Michelangelo's "The Creation of Man" to interpret tne re-creation oi mscnanoitis in '-nan's own image. This comment on the ert'erysnce o! rooois in our time was commissioned tor World magazine.
    [Show full text]
  • Running a C Program
    Running a C Program Kurt Schmidt Dept. of Computer Science, Drexel University April 26, 2021 Kurt Schmidt (Dept. of Computer Science, Drexel University)Running a C Program April 26, 2021 1 / 31 Objectives • Be introduced to the processes that turn C source code into a native executable, and run it • Use this knowledge to better understand errors Kurt Schmidt (Dept. of Computer Science, Drexel University)Running a C Program April 26, 2021 2 / 31 Intro Kurt Schmidt (Dept. of Computer Science, Drexel University)Running a C Program April 26, 2021 3 / 31 Running a C/C++ Program In an IDE, when you push the "Run" button, a number of things happen: 1 Dirty flags are checked on open editor windows 1 Saves, or prompts to save 2 Source code is run through the precompiler 3 The output is then compiled 4 The linker makes the various object files into an executable 5 The loader reads your program from disk and runs it • Or, the debugger performs a similar task Kurt Schmidt (Dept. of Computer Science, Drexel University)Running a C Program April 26, 2021 4 / 31 The gcc Compiler For this lecture I will use the Gnu C Compiler gcc (Ubuntu 7.4.0-1ubuntu1 18.04.1) 7.4.0 • As previously noted, we can compile a C program like this: gcc f1.c f2.c ... fn.c -o exe_name • gcc is actually a wrapper • gcc either performs these functions, or calls another program to do so: 1 Precompile 2 Compile 3 Assemble 4 Link • Note, gcc (like most compilers) is not strictly ISO/ANSI Kurt Schmidt (Dept.
    [Show full text]
  • List of Compilers 1 List of Compilers
    List of compilers 1 List of compilers This page is intended to list all current compilers, compiler generators, interpreters, translators, tool foundations, etc. Ada compilers This list is incomplete; you can help by expanding it [1]. Compiler Author Windows Unix-like Other OSs License type IDE? [2] Aonix Object Ada Atego Yes Yes Yes Proprietary Eclipse GCC GNAT GNU Project Yes Yes No GPL GPS, Eclipse [3] Irvine Compiler Irvine Compiler Corporation Yes Proprietary No [4] IBM Rational Apex IBM Yes Yes Yes Proprietary Yes [5] A# Yes Yes GPL No ALGOL compilers This list is incomplete; you can help by expanding it [1]. Compiler Author Windows Unix-like Other OSs License type IDE? ALGOL 60 RHA (Minisystems) Ltd No No DOS, CP/M Free for personal use No ALGOL 68G (Genie) Marcel van der Veer Yes Yes Various GPL No Persistent S-algol Paul Cockshott Yes No DOS Copyright only Yes BASIC compilers This list is incomplete; you can help by expanding it [1]. Compiler Author Windows Unix-like Other OSs License type IDE? [6] BaCon Peter van Eerten No Yes ? Open Source Yes BAIL Studio 403 No Yes No Open Source No BBC Basic for Richard T Russel [7] Yes No No Shareware Yes Windows BlitzMax Blitz Research Yes Yes No Proprietary Yes Chipmunk Basic Ronald H. Nicholson, Jr. Yes Yes Yes Freeware Open [8] CoolBasic Spywave Yes No No Freeware Yes DarkBASIC The Game Creators Yes No No Proprietary Yes [9] DoyleSoft BASIC DoyleSoft Yes No No Open Source Yes FreeBASIC FreeBASIC Yes Yes DOS GPL No Development Team Gambas Benoît Minisini No Yes No GPL Yes [10] Dream Design Linux, OSX, iOS, WinCE, Android, GLBasic Yes Yes Proprietary Yes Entertainment WebOS, Pandora List of compilers 2 [11] Just BASIC Shoptalk Systems Yes No No Freeware Yes [12] KBasic KBasic Software Yes Yes No Open source Yes Liberty BASIC Shoptalk Systems Yes No No Proprietary Yes [13] [14] Creative Maximite MMBasic Geoff Graham Yes No Maximite,PIC32 Commons EDIT [15] NBasic SylvaWare Yes No No Freeware No PowerBASIC PowerBASIC, Inc.
    [Show full text]