Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: what can i ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 4558 of 4728
Post > Topic >>

Re: what can i do for this error "suffix or operands invalid for `fld'"

by Tim Roberts <spamtrap@[EMAIL PROTECTED] > Mar 9, 2008 at 12:48 AM

"Rod Pemberton"  <spamtrap@[EMAIL PROTECTED]
> wrote:
>
>"Tim Roberts" <spamtrap@[EMAIL PROTECTED]
> wrote:
>> step  <spamtrap@[EMAIL PROTECTED]
> wrote:
>> >
>>
>> gcc does not use the size of the operand to figure out which
instruction to
>> use.  It can't tell the difference between the single and
double-precision
>> instructions, so you have to tell it, by adding a suffix letter.
>>
>> If you really want singles (which is what you have here with "float"),
use
>> "flds" and "fstps".
>
>Are you sure that's his problem?
>
>gcc 3.4.1 (binutils 2.1.5) compiles the code without error (DJGPP).  It
>warns about 'fadd' needing to be 'faddp', 'fsub'...'fsubp' etc.

No, I'm not.  I have tried several times to gain a comfortable
understanding of gas syntax and gcc's inline asm, and every time I think I
truly get it, I post an offering and someone offers a counterexample. 
Many
web pages on the topic contradict each other, in what I suspect are
version
differences.

Perhaps I should have said "there exists at least one older version of gcc
that required flds and fstps instead of fld and fstp".
-- 
Tim Roberts, timr@[EMAIL PROTECTED]
 & Boekelheide, Inc.
 




 4 Posts in Topic:
what can i do for this error "suffix or operands invalid for `fl
step <spamtrap@[EMAIL  2008-03-05 03:02:10 
Re: what can i do for this error "suffix or operands invalid for
Tim Roberts <spamtrap  2008-03-07 05:19:27 
Re: what can i do for this error "suffix or operands invalid for
"Rod Pemberton"  2008-03-07 05:49:05 
Re: what can i do for this error "suffix or operands invalid for
Tim Roberts <spamtrap  2008-03-09 00:48:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 0:27:59 CDT 2008.