Porting ADA source
From: Giacomo Polizzi (mio_at_.mio)
Date: 07/19/04
- Next message: Martin Dowie: "Re: reading a text file into a string"
- Previous message: Dale Stanbrough: "Re: reading a text file into a string"
- Next in thread: Dale Stanbrough: "Re: Porting ADA source"
- Reply: Dale Stanbrough: "Re: Porting ADA source"
- Reply: Adrian Knoth: "Re: Porting ADA source"
- Reply: Jacob Sparre Andersen: "Re: Porting Ada source"
- Reply: Martin Dowie: "Re: Porting ADA source"
- Maybe reply: Marin David Condic: "Re: Porting ADA source"
- Reply: Peter Amey: "Re: Porting ADA source"
- Reply: Volkert: "Re: Porting ADA source"
- Reply: Richard Riehle: "Re: Porting ADA source"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 19 Jul 2004 09:42:27 +0200
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
- Next message: Martin Dowie: "Re: reading a text file into a string"
- Previous message: Dale Stanbrough: "Re: reading a text file into a string"
- Next in thread: Dale Stanbrough: "Re: Porting ADA source"
- Reply: Dale Stanbrough: "Re: Porting ADA source"
- Reply: Adrian Knoth: "Re: Porting ADA source"
- Reply: Jacob Sparre Andersen: "Re: Porting Ada source"
- Reply: Martin Dowie: "Re: Porting ADA source"
- Maybe reply: Marin David Condic: "Re: Porting ADA source"
- Reply: Peter Amey: "Re: Porting ADA source"
- Reply: Volkert: "Re: Porting ADA source"
- Reply: Richard Riehle: "Re: Porting ADA source"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|