View Single Post
  #9   Spotlight this post!  
Unread 18-02-2005, 18:33
TechnocratiK TechnocratiK is offline
Registered User
AKA: Patrick Diez
None #0296 (Northern Knights)
Team Role: Programmer
 
Join Date: Sep 2003
Location: Montreal, Canada
Posts: 22
TechnocratiK is an unknown quantity at this point
Re: Program error - "can not fit the section"

Using the compiler optimizations helps a bunch. I haven't had the time to prove this, but I don't think the compiler treats floating point operations as functions. What I noticed was that changing my code from floating point operations to integer operations made a very big difference. In fact, it let me fit Kevin's camera code in no prob (not to mention made it run a hell of a lot faster). I wonder if creating and using a function like:
Code:
float fmul(float x, float y) {
  return (x * y);
}
would actually save code space...
Well, it would, if one didn't enable procedural abstraction, which does exactly this: treat operations as functions. A "-Opa-" on your command line signifies that you have this disabled, which can make a pretty big difference.

One big advantage to removing the debug options is that it cuts out the extra functions in the math library that one would never use, like asinh.
__________________
TechnocratiK out.

Last edited by TechnocratiK : 19-02-2005 at 01:19.