This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: i can't use math func log()


On 30 November 2006 07:56, yan xiaotian wrote:

> about 1): s3c2410 doesn't have fpu
> about 2): how to know the configuration for floating point?
> 
> thanx~!
> 
>            best
>                                         Alex Y


  Heh, calm down!  Once is enough!

  The way to find out the configuration is any of:

1)  Use "objdump" with the '-d' flag and look at the compiled code to see if
FPU instructions are used.
2)  Add the "--save-temps" flag to gcc when compiling and look at the .S file
generated to see if it has FPU instructions.
3)  Run "gcc -v" to see the options with which gcc was configured.


  If it does turn out to be making floating point instructions, you can try
using the "-msoft-float" flag.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]