Re: HPGCC related ...



On Mar 20, 3:04 am, Claudio Lapilli <pleasedonts...@xxxxxxx> wrote:

Even MS abandoned the long double years ago (at least on the x86
platform, don't know on others), and now long double is mapped to
double, to add more confusion.

I seem to recall that this happened when they moved to the 32-bit
Windows compiler, probably with Windows-95. It seemed a shame not to
take advantage of the 80-bit floating point hardware that was there
for the using. At the time, I was doing a lot of fractal
programming. Using 80-bit floats instead of 64-bit allowed a few more
zooms before having to resort to slower software code.

Your comment got me curious about which x86 compilers still support
the 80-bit long doubles. Of the current compilers that I could get me
hands on: gcc (and variants like Cygwin, MinGW), Intel, Digital Mars,
and Turbo C++ (it's back) all support 80-bit long doubles in hardware;
MS and Open Watcom do not.

I gather that ARM gcc only goes up to 64-bit floats, so it makes sense
for hpgcc to do the same.

This brings to mind what may be a silly question, but please pardon my
ignorance. I know there is a _lot_ of code in hpgcc that is specific
to the 49g+/50g. But there is also a lot that is standard to any C
compiler (math libraries, std i/o, etc.). How much of ARM gcc's
standard library had to be rewritten for hpgcc? For instance, the
scanf() function that we've been discussing. Was there already a
glibc scanf() for ARM, or did this have to be written from scratch? I
see from the source code that some of the fast IEEE math routines are
present while others are not (such as hyperbolics, expm1, log1p).
Would these have to be written from scratch, or do they exist in an
ARM glibc? Can you just recompile glibc (with a few tweaks for the
mixed endian floats), or am I oversimplifying the process?

Thanks for any insights you can pass my way.
-wes
.



Relevant Pages

  • Re: hmm..interesting
    ... you've got a discussion of ARM vs Intel architecture here: ... And ARM is rapidly running away from RISC. ... mainstream (many netbooks and smartphones run Linux instead of Windows ... And hardly any C compiler does. ...
    (comp.sys.acorn.hardware)
  • Re: Using RVCT compiler for WinCE
    ... I know how to generate the machine code in RVCT. ... the ARM options that the compiler knows about. ... assembler didn't know about). ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Using RVCT compiler for WinCE
    ... I know how to generate the machine code in RVCT. ... the ARM options that the compiler knows about. ... compiler and then, with the help of a few macros, get the VS2008 ... assembler didn't know about). ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Another Forth in space
    ... The MPE VFX compiler has been available since 1999. ... ARM 32 bit ... Of these, Jazelle is Java support, mostly for the PDA maket. ... instruction sets used by the Cortex-M3 processors. ...
    (comp.lang.forth)
  • Re: hpgcc arm doubles in memory
    ... compiler for ARM treats doubles: 32-bit words stored in big-endian ... you would have a "true" big-endian representation. ... Sounds to me like it was more of an ARM issue than a gcc issue. ...
    (comp.sys.hp48)