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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3869f0598191b11d,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!colt.net!newsfeed.gamma.ru!Gamma.RU!comstar.ru!teleglobe.net!151.99.250.105.MISMATCH!news.finmeccanica.it!not-for-mail From: "Giacomo Polizzi" Newsgroups: comp.lang.ada Subject: Porting ADA source Date: Mon, 19 Jul 2004 09:42:27 +0200 Organization: Finmeccanica Message-ID: NNTP-Posting-Host: 172.26.101.190 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: g2news1.google.com comp.lang.ada:2225 Date: 2004-07-19T09:42:27+02:00 List-Id: Hello, I have to port an ADA program from an Unix DEC Alpha machine with a DEC ADA compiler to a Linux pc machine with gnat (gcc) compiler. The task is to have, if possible, an unique source code compilable on both platforms but there are the following problems: 1) some system packages that execute the same kind of operations have different names in the two compilers 2) some system functions (for example mathematical function) have different names in the two compilers 3) the word length is 64 bits on DEC Alpha and 32 bits on pc so it is not always possible to use the same standard type (for example the long type is 64 bits on Alpha and 32 bits on pc) 4) the standard type (long long) used by gcc on pc to solve the previous problem is not supported by the DEC ADA compiler 5) the different word length modifies some structure length used to define interface messages with other external programs Is there something like #IFDEF of C language that I can use in ADA ? Is there any other kind of solution for the above problems ? Thanks to everybody Giacomo