[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with Hand-Optimized Assembly
From: |
Bill Woessner |
Subject: |
Re: Help with Hand-Optimized Assembly |
Date: |
Wed, 28 Mar 2012 18:30:01 -0000 |
User-agent: |
G2/1.0 |
It appears to be a C vs. C++ issue. If I compile the code with gcc
(and a .c extension), it works fine. If I compile with g++, it fails
with this error:
AngleDiff.cc: In function ‘double DiffAngle(double, double)’:
AngleDiff.cc:20:8: error: memory input 3 is not directly addressable
However, it DOES work if TWO_PI is declared static (but not static
const). I also tried compiling with -fkeep-static-consts, which
didn't help either.
Thanks,
Bill
Re: Help with Hand-Optimized Assembly, Bob Masta, 2012/03/28
Re: Help with Hand-Optimized Assembly, James Harris, 2012/03/28
Re: Help with Hand-Optimized Assembly, Markus Wichmann, 2012/03/28
Re: Help with Hand-Optimized Assembly, Jan Seiffert, 2012/03/28
Re: Help with Hand-Optimized Assembly, Bill Woessner, 2012/03/28