#102 return <float>

closed-works-for-me
3
2013-05-25
2001-08-02
niko
No

Hello developers,

I noticed this strange behavior while trying to use
SDCC for an university project:

I have a function that has to return a float value.
So code like this works:

float abc(float x);
{ ...
float1=float2+float3;
return float1;
}

But this one does not:
{ ...
float1=float2*float3;
return float1;
}
The compiler returns this message:
?ASlink-Warning-Undefined Global '___slong2fs'
referenced by module '_fsadd'

So addition of float values works, while
multiplication seems not.

I would be pleased about any message if I made some
stupid mistake or you know a soloution for this
problem.

Niko Sünderhauf
niko@hrz.tu-chemnitz.de
stud. comp. sci.
Chemnitz
University of Technology
Germany

Discussion

  • Johan Knol

    Johan Knol - 2001-08-02

    Logged In: YES
    user_id=63512

    This can't be reproduced in 2.2.2beta. Can you confirm it still
    exists?

     
  • Johan Knol

    Johan Knol - 2001-08-02
    • milestone: --> unreproducable
    • priority: 5 --> 3
    • assigned_to: nobody --> johanknol
    • status: open --> open-works-for-me
     
  • Johan Knol

    Johan Knol - 2001-08-03
    • status: open-works-for-me --> closed-works-for-me
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks