This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Cross-compiler between machines with different floating pointformat
- To: Geoff Keating <geoffk at cygnus dot com>
- Subject: Re: Cross-compiler between machines with different floating pointformat
- From: Stephen L Moshier <moshier at mediaone dot net>
- Date: Sun, 27 Aug 2000 23:53:49 -0400 (EDT)
- cc: gcc at gcc dot gnu dot org
- Reply-To: moshier at mediaone dot net
On Sun, 27 Aug 2000, Geoff Keating wrote:
> We don't have an emulator for the VMS floating-point format, so the
> compiler can't do any arithmetic at compile time on such values. All
> VMS ports (which is I believe only VAX and Alpha at this point) are
> affected.
Er, the DEC VAX format emulation has been available for years and it
works fine.
I think what you are seeing is the result of a desire to choose
between VAX and IEEE numbers by a run-time compiler switch. Because
of the way some of the preprocesor macros are defined, it would not be
possible to switch the emulator format at run time without
considerable work. You can easily build a compiler targeting VAX
format or a different one targeting IEEE format, but not one that does
both at the same time. This first came up in connection with the
Convex port, which has a switch to choose between the two formats, as
does alpha-vms.