View Single Post
Old 20 April 2020, 15:19   #1
TomSoniq
Registered User

 
Join Date: Feb 2019
Location: Hannover / Germany
Posts: 15
GCC 3.4.0 and soft-float

Hi all,


I'm using gcc 3.4.0 as part of the good old amidevcpp package to cross-compile 68k code under MS Windows.


I've been trying to build non-FPU code but so far without success.


Here's my very small test program:
Code:
int main(void) {
    float a,b,c;
    a=4;
    b=2.5;
    c=a/b;
    return 0;
}
When I compile this using
Code:
m68k-amigaos-gcc -noixemul -msoft-float -o FloatTest FloatTest.c
then I instantly get the infamous #8000000B software failure on a non-FPU-system. Even adding -m68000 doesn't help.


Am I doing something wrong? Does this build of GCC support compiling code for FPU emulation at all?


Here's its version info:
Code:
Reading specs from /usr/bin/../lib/gcc/m68k-amigaos/3.4.0/specs
Configured with: ../gcc-3.4.0/configure --prefix=/usr/local/amiga --target=m68k-amigaos --enable-languages=c,c++,objc --enable-haifa --enable-sjlj-exceptions --disable-shared --disable-libstdcxx-pch
Thread model: single
gcc version 3.4.0
Any help appreciated.
Thanks,
Tom
TomSoniq is offline  
 
Page generated in 0.04382 seconds with 11 queries