Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
problem while detecting floating point operations
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
alex  
View profile  
 More options Dec 19 2006, 5:19 am
From: "alex" <dayakarb...@gmail.com>
Date: Tue, 19 Dec 2006 10:19:23 -0000
Local: Tues, Dec 19 2006 5:19 am
Subject: problem while detecting floating point operations
hi friends ...

i am facing a problem while detecting floating point operations in my
project, please help me.

i want to find out  the  places  in my C/C++ project where i am doing
floating point operations.
As it is a big project it is not possible to check every line manually,
so is there any other method
to detect floating point operations in my project?

I just compiled the project with option '-msoft-float', it is reporting
errors at the places where 'float' variables are being used. But it is
not reporting any error for the places where  we are using  floating
literals ...
to make myself clear,i would give an example code snippet,

example:

        //first case

        float x;

        printf("%f",x); // here it is reporting an error because we are
trying to use the variable (float) x;

        //in second case

        int y;

        y = 4.5 * 2.5; // here it is not reporting any error .

        what should have to be done to detect these kind of operations
also.

library: GCC 3.4.3
kernel: 2.6.9

Thanks in advance


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google