Is there any way to finish the link even even if your over your size limit so you can look at the map and see how much you need to shrink your code?
Try changing the memory model. (Go Project->Options->All Files (or something like that. I’m on a computer that doesn’t have MPLAB, so I don’t know.) and find the setting for the linker that deals with the memory model size.) Hope that helps.
nope, set everything to large and still the same thing. The realy confusing thing is, im not near the limit to the point that im at in the link according to the temp MAP file. It stops at “MATH_DATA”, says it doesnt fit. The realy confusing thing is mathdata is like 20bytes. Any sujestions?
Now, according the temp file, its addressing MATH_DATA to a diff spot then usual. MATH_DATA normaly(always) is mapped to 0x3f but for some reason .temp is being mapped to 0x00 and its size is 0x44. It is normaly mapped there, but its size should be 0x28. Ideas?
amazing, the problem turned out to be very very dumb. Aparently the linker didnt like the fact that I did my taylor expansion for atan in a single line and freaked out. It, for some reason, increased the size of .tempwhatever and didnt have room for the rest. Its amazing how crappy this compilier is!
Yeah.
Glad you figured it out. See you at the Buckeye!
If you really needed to expand the memory, you can try editing the linker script (Make a back-up copy, though!). I would just add a section called “ExtraRoom” and having addresses from 0xF00400 to 0xFFFFFF. That should be big enough. But don’t load any code you compile that way! And tell me how it goes, I’m mostly guessing.