Building GLFPE programs from sample source for a PC (i686 or AMD64) using Linux 27 Jul 2018 GLF ---------------------------------------------------------------------------------------------------- It is assumed that the reader of this document is interested in computer programming, and would like to try writing and compiling programs using tools known to work without too much fuss. It can be expensive to buy into a commercial suite for programming development, but they tend to provode a broad capabilty from the start, and enjoy widespread professional following as well as support. On the other hand, one can program with powerful tools available for free, but one needs to FIND the tools first. Many such tools are now freely available from open sources posted to the web. However, it can be time-consuming and frustrating to locate all the pieces necessary to put together a working environment, and it can be difficult getting all the pieces to actually work together. It would be nice to have a tested working environment ready download, copy to a local computer, and use right away. The GLF Programming Environment has been ported and tested to work on the Debian 9 (stretch) platform for PC compatible computers. The GLFPE for Linux consists of a live bootable ISO image which can be burned to DVD-R or copied to USB flash drive. It is required that the PC is a qualifying machine, with an i686 32-bit CPU or an AMD64 64-bit CPU, at least 2 Gb of RAM available, and providing at least 2 available USB 2.0 (or faster) ports. It is helpful for downloading the large installation files to have access to reasonable internet bandwidth, but access to the internet is not required to run the OS. The live boot system allows a user to develop programs or do other mundane computer work using an up-to-date Linux operating system without making any unwanted commitments or installations to the host computer. It is even possible to boot the live OS on a machine with no hard drive at all. The OS simulates hard drive space with available RAM, so the more the better. The official ISO images which embody the live boot GLFPE for Linux portable OS are prebuilt by the author and distributed for download and installation by others (about 2.5 Gb download size). The author uses his own PCs and carefully crafted configuration sets to run periodic automated update builds of a Debian derivative remix operating system. The GLFPE for Linux incorporates a suite of compiler tools, libraries, and support applications sufficient to setup, compile, and test the accompanying GLFPE sample source code. With a good broadband internet connection, one can download the working ISO file in about ten minutes, and using easily available applications for either Windows or Linux, one can set up a bootable drive in another ten minutes. Alternatively, the author provides access to the same configuration files, such that an interested user may follow a documented procedure to start with an official release of Debian from the debian.org website, apply athe officially supported "live-build" process as the author does, and produce an equivalent new ISO image which can be used in exactly the same way as the author's distributed ISO images. The process requires minimal external resources other than the computer and the OS -- two USB sticks and a (preferably wired) broadband internet connection. The procedure is not terribly complicated, but it takes a few hours. A faster computer with more CPU cores help a lot. The advantage to an advanced user is that he can add his own modifications to the configuration and develop his own remix OS, with his own personal configurations and suite of applications. The image files distributed in this archive contain a large amount of software, documentation, and other content, all of which is known, or believed in good faith, to be free or open source, freely available and redistributable content without encumbrances of licensing which prohibit their free distribution and use. See other files in this compendium for further description of license or copying terms. GLFPE is a portable working toolset for programmers ---------------------------------------------------- The GLF Programming Enironment (GLFPE) is a collection of free and open source compilers and associated programming tools assembled by the author (GLF), which port a similar complete working environment to at least three different operating systems. At this time it has been ported to and maintained for: PC compatible computers running an installed version of Windows; PC compatible computers capable of booting a live DVD or USB Linux OS; Raspberry Pi microcontroller (A,B,2,or 3) with at least 8Gb SD card. Programming languages supported, with working sample source code, are C, C++, Fortran, COBOL, Python, with more readily available. A few simple integrated development environment (IDE) tools are provided (Orwell Dev-C++, V IDE, Code::Blocks, Geany), which the author uses and reistributes. Programmers tend to be stubborn about preferences, though, and users are free to adapt other preferred editors or IDEs as they see fit. The author will not object, neither will he help if you use Eclipse, Visual C++, Xcode, or some other such thing, but he won't help you figure it out, either. GLF provides what he uses and can tell you how to use. How the GLFPE is used on different OS systems ---------------------------------------------- The Windows version runs a suite of programs in a portable fashion, without formal installation, from a work drive assumed to be a USB stick at least 4Gb in size, preferably fast access (high speed flash and/or USB 3.0). The system essentially exists as a work drive with alot of portable applctions and data, and the only installations which might occur are for possible serial port or other hardware drivers, which must be installed into Windows itself. The author does not work for Microsoft, so he cannot give you a working copy of Windows for free. HOWEVER, he CAN give you a working copy of Gnu/Linux for free. The Linux version of the GLFPE is a complete integrated, fully runnable (and installable if so desired) operating system complete with a similar collection of tools. It runs as a live boot DVD or USB, and no commitments need be made to the host computer to run all the tools and applications. The current version is a custom built remix of Debian 9 (stretch). As a live boot system, changes or extra sofware may be temporarily installed during a session, but the changes disappear upon the next boot. It can even be installed to a Virtual Machine (VM) running under some other OS -- it has been tested on Virtualbox. The Raspberry Pi version is an image file suitable for burning to an SD card as the actual boot drive for the RPi. It has on it a Raspbian 9 operating system very similar in nature to the Linux live boot version, but runs as an installed OS on the RPi. As an installed system, all changes made to applications or configurations are cumulative and permanent. The sample source code to compile --------------------------------- The source code distributed with GLFPE is both an offer of teaching examples and a test suite to demonstrate the functionof the compiler toolset. The sample code is voluminous and is either the personal product of the author (GLF), or the compilation of freely available examples and tutorials by others who allow it to be redistributed. It runs the gamut from simple command-line utilities to large graphical libraries for leveraging programming effort in a GUI environment. It is described more fully elsewhere in this archive, and by the commented source code itself. Use it if you wish, or don't. The author offers it to show that the system works. However, it is assumed if you are really interested in GLFPE, it is because you want to write your own programs, and you can use the toolset whether you even look at the sample code or not.