From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Operating System differences and Ada OS independent programming Date: Thu, 24 Mar 2016 11:41:20 +0100 Organization: A noiseless patient Spider Message-ID: References: <56eff4a4$0$4238$e4fe514c@news.kpn.nl> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 24 Mar 2016 10:38:09 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="24054"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iBPQAO5fClxuiODKu6yxYM2M9zraUnSU=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: Cancel-Lock: sha1:o1tltDF1xSdPUUgnjPdS5FN8JdQ= Xref: news.eternal-september.org comp.lang.ada:29876 Date: 2016-03-24T11:41:20+01:00 List-Id: On 24.03.16 09:00, Dmitry A. Kazakov wrote: > The mapping is normally predefined. E.g. when you run MinGW, Windows > roots are already mapped: > > E:\ -> /e/ Enter a microcontroller with both a flash drive attached and some other storage connected via network. Not much of an operating system, yet a simple, single-threaded hierarchical file system for the flash drive. Then, when porting a prototype version of a program from Windows™ to the controller, I thought that the programmer, or "operator", should be able to instruct the run-time that - "E:\" should be mapped to something that represents the "root" of the filesystem on the flash drive, and - %HOMEDRIVE% be mapped to the network attached thing, - %HOMEPATH% to below what %HOMEDRIVE% has become. If the program was developed without many features required of the file system, then the source text that names files would not need to be recompiled by any configurable implementation of Ada.