Building GLFPE programs from sample source for Windows 21 Nov 2021 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 for Windows has been ported and tested to work on a reasonaly modern PC compatible computer running any version of Microsoft Windows from XP to 10. The machine needs at least 1Gb of RAM available (2 or more is better), and at least two USB 2.0 or faster ports. That gives the suite a broad applicability to ordinary users (well, programmers) running hardware available for the last 15 years. The GLFPE for Windows currently incorporates only 32-bit tools and applications at this time, and compiles 32-bit applications. The suite has been designed to install as a monlithic large package by unpacking a .ZIP archive to either a USB flash drive or to an internal PC drive, usually the C: drive in that case. The system is designed for maximum portability, in that if installed to USB stick, it can be run on a Windows PC with few or no actual software installations necessary (perhaps a hardware driver or some persistent configuration files in Users directory). The whole USB-based environment can be carried and used among multiple machines. The author has painstakingly assembled the suite by locating and acquiring many free and open source applications, development libraries, and compiler tools into a unified package and verifying its utility and correctness by repeated automated compilation of hundreds of source programs in C and C++ in the author's personal collection of source code. That portion of the source collection unencumbered by copyright restrictions (the author's own code plus free/open sources) is also made available for public distribution by the author as sample source code to be compiled within the portable development environment. The entire toolset and source code suite is assembled into a large .ZIP archive, which can easily be unpacked using any Windows PC and either built-in ZIP support or using a good archiver such as 7Zip, which is free and readily available. 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 archive 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,3, or 4) with at least 8Gb (better 16Gb) 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 11 (bullseye). 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 10 or 11 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.