+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Member level 5
    Points: 1,257, Level: 8
    achaleus's Avatar
    Join Date
    Dec 2012
    Location
    Bangalore
    Posts
    80
    Helped
    5 / 5
    Points
    1,257
    Level
    8

    -msoft-float -m64 x86 machine, gcc is not referring to software floating point librar

    Dear edaboard,
    I have a third party software floating point library which was compiled using 64 bit machine (-m64). I am trying to infer this floating point library using gcc flag -msoft-float.

    If I am using gcc -msoft-float -m32 flag for c = a+b, where c,a,b are float values,gcc infers assembly __addsf3 which is a software fp library. If I am trying to use gcc -msoft-float -m64 flag for the same c = a+b, gcc infers hardware floating point addss.
    Any suggestion on how to infer software floating point library using -m64 option are greatly appreciated

    Vinay

    •   Alt7th November 2017, 08:24

      advertising

        
       

  2. #2
    Advanced Member level 5
    Points: 11,623, Level: 25
    Achievements:
    7 years registered

    Join Date
    Apr 2010
    Posts
    1,779
    Helped
    385 / 385
    Points
    11,623
    Level
    25

    Re: -msoft-float -m64 x86 machine, gcc is not referring to software floating point li

    -one is to link your thirdparty lib as -lthirdpartlibname.

    And this seems to be supported only in some versions of gcc.



--[[ ]]--