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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.55.81 with SMTP id t17mr3199788qag.3.1386424882924; Sat, 07 Dec 2013 06:01:22 -0800 (PST) X-Received: by 10.183.1.40 with SMTP id bd8mr68540obd.11.1386424882705; Sat, 07 Dec 2013 06:01:22 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.glorb.com!bm17no18276086qab.0!news-out.google.com!9ni3048qaf.0!nntp.google.com!p15no9948654qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 7 Dec 2013 06:01:22 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=31.54.231.48; posting-account=pmkN8QoAAAAtIhXRUfydb0SCISnwaeyg NNTP-Posting-Host: 31.54.231.48 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1d445f04-b670-444f-9858-55da271fe17a@googlegroups.com> Subject: Re: Will Ada-95 Programs Written in MS Windows Run in MacOS and Linux Without Some Tweaking. From: Austin Obyrne Injection-Date: Sat, 07 Dec 2013 14:01:22 +0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:17898 Date: 2013-12-07T06:01:22-08:00 List-Id: On Saturday, December 7, 2013 1:16:05 PM UTC, Simon Wright wrote: > Austin Obyrne writes: > My Ada-95 text book c= ame first day - 10 years ago - with a selection > of compilers for Windows,= MacOS and Linux. Having a Windows operating > system I automatically insta= lled the Windows compiler from the three > and all has gone very well up to= now. That compiler was the gnat > 311.p version. My ciphers written in Ada= -95 for Microsoft Windows are > complete and working very well now after ye= ars of work. I now want to > get them to run in Macos and/or Linux also. > = > It would be na=EFve to think that they will run in Macos also just by > i= nstalling that compiler and ditto for Linux =96 it would be great if > they= did?. > > Before I spend any more money (in short supply) on getting Macos= and > Linux equipment could anybody who has experience of doing this tell = me > if the programs written for Windows will run in Macos and/or Linux > s= traight off and if the Windows program source code requires any > modificat= ion or even if it runs at all. I just downloaded your Vector Cipher_2 zip f= ile (and deleted all the .o, .ali, .exe and b_*.c files!) and, using GNAT G= PL 2013 on Mac OS X, compiled & built real_time_encryption_program_mark_2 w= ith three warnings: real_time_encryption_program_mark_2.adb:589:12: warning= : unary minus expression should be parenthesized here real_time_encryption_= program_mark_2.adb:612:08: warning: unary minus expression should be parent= hesized here real_time_encr yption_program_mark_2.adb:743:22: warning: "PlainTextNum" may be referenced= before it has a value (there were a lot more with -gnatwa, enable all comm= on warnings) so I think you should be in good shape. Mind you, I didn't run= it since I didn't see any obvious instructions on how to run what look lik= e test cases. Before spending any money, why not download the latest GNAT f= or Windows from libre.adacore.com and try that? Ada code tends to be very p= ortable. I'd strongly recommend not bothering with the Linux or Mac compile= rs from your textbook; 3.11p is very old, and the Mac version at least won'= t even run on recent Macs. Thanks Mark =96 That is brilliant advice =96 before I forget it all you nee= d to do is to key in the file names exactly as they appear in the list of t= est files on screen eg. PlainTextFile_9.dat Followed by, CipherTextFile_9.dat This will encrypt the first file i.e. the test file called =93PlainTextFile= _9.dat=94 into the second one called =91CipherTextFile_9.dat=92 But that is for the Batch Files. If you then open GENERAL_DECRYPTION_PROGRAM_MARK_2 you will be prompted to = enter the ciphertext file for decryption like this, CipherTextFile_9.dat Followed by, MessageTextFile_9.dat This will decrypt the ciphertext into messagetext =96 ditto for the other t= est files before writing your own files =96 these are just tutorials for an= ybody who wants them=20 May I explain, I am in Ada programming only for one thing =96 that is to im= plement three ciphers I have written =96 I=92m problem-solving one problem = only and although I like Ada programming at my age it is not worth my while= to pursue the finer points of the language. >From what you have told me I think I should leave the dissemination of the = finished ciphers (currently to hand in Ada-95 only but required in all the= possible future versions of Ada) to experienced people who are au fait wit= h all the nuances of compilers that are available to day. The important part for me is getting the basic crypto right. Huge thanks for your invaluable help and complements of the season to you. PS =96 the Real_Time Version Mark_2 is an Email interactive program =96 the= re are no test files but if you follow the prompts it should be OK =96 in = development tests I always call the email file, =93Email_CipherTextFile_X.dat =93=20 but you call it what you like making sure to re-enter the same name when yo= u decrypt it in the general decryption program as when doing batch files. Austin