Go to Post Calling all grandmas! We need 3000 crocheted ropes for team's! - Jon Stratis [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2-week FIRST summer program @ WPI ColleenShaver General Forum 20 31-05-2009 03:02
how to add steps in the provided encoder program for the edu Zaramel2002 Programming 3 11-02-2004 08:35
Fried program slots? Jeff Waegelin Programming 18 19-03-2003 18:08
Ahh! Program trick confusing! archiver 2001 9 24-06-2002 02:26
Credits for FIRST program. archiver 2000 6 24-06-2002 00:16


All times are GMT -5. The time now is 08:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi