![]() |
linking error
I got a "linking error" when I compiled my code:
".code_sqrt.o' can not fit in the section. Section ' code_sqrt.o' length=0x00000442" what does this mean? |
Re: linking error
It looks like your floating point calculations have completely filled your processors memory.
|
Re: linking error
If you are only using the sqrt function, you might like to see the implementation of InvSqrt():
http://www.beyond3d.com/articles/fastinvsqrt/ here is an implementation that I compiled on my first controller (the scary constant is a standard IEEE754 floating point number, so it will work on every microprocessor the same way). I would definitely extensively test this method before putting it to use (i.e. don't hook up motors until you are sure it gives the expected answers), but I believe that it is just a first-order Newton's method approximation, with the constant being a first guess I believe. I'm pretty sure it will take up less space than the included math library. Code:
float invSqrt(float magnitudeSquared) {Code:
5629.000: InvSqrt 0.013318; 1/sqrt 0.013329 |
| All times are GMT -5. The time now is 13:19. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi