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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,49b52b8065390e5a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!postnews.google.com!z9g2000yqi.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Ada Plattform Independence Date: Wed, 11 Mar 2009 10:33:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9e83b410-71a3-4993-bdbc-24267897d488@z9g2000yqi.googlegroups.com> References: <82d07df7-bee1-4fd4-b0e1-dd10f43f9f60@q1g2000vbn.googlegroups.com> NNTP-Posting-Host: 81.151.68.6 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1236792829 31527 127.0.0.1 (11 Mar 2009 17:33:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 11 Mar 2009 17:33:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z9g2000yqi.googlegroups.com; posting-host=81.151.68.6; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:4042 Date: 2009-03-11T10:33:49-07:00 List-Id: On Mar 11, 2:04=A0pm, "patrick.gu...@googlemail.com" wrote: > Hi all, > > I=B4m currently working on an analysis of an Ada-System with focus on > the current state of plattform-independence. As my experiences wirh > porting Ada-software to different operating system is limited and > close to zero, I=B4d like to ask, which conecpts of the langiage might > cause problems. I don=B4t mean aspects like including plattform- > dependent libraries or calling system-functions from Ada-Code. I know > that this will lead to portation problems. I=B4m more interested in > problems with the Ada language itself. For example use of > represantation clauses or I/O statements. I=B4ve been searching a while > to find a listing of parts of the Ada standard which might cause > problems, but didn=B4t succeed. So I hope, that you can help. > > Thanks, > Patrick Hi Patrick, I've ported Ada code from 68k to i386 from no-OS to VxWorks to Win32 and in each case the biggest hurdle has been 'how good is the original code'. Assumptions on the sizes and ranges, esp. of the prefined types (esp. Integer), can cause problems. Fixed-point numbers are different between revisions of the language (e.g. Ada83 v Ada95 v Ada2005) but should be portable enough between different ports using the same language. Providing your not dependent on a particular underlying representation being used. The 'favourite' gotcha is usually using non-standard additions to standard packages. E.g. XD-Ada extended the contents of package 'System' to include 8/16/32-bit signed/unsigned integer. Easy to deal with - just define a package called 'XDAda_System' and defines subtypes of the types in Interfaces in it. Then do a globel find/ replace for all occurences of 'with System' (and 'use'!) and you're 90% there. I ported 45kSLOC from no-OS XD-Ada to GNAT GPL 2008 Wintel in an hour the other week**. Cheers -- Martin ** Where 'ported' means getting a clean compilation / link and not actually running it!