Go to Post I wake up at noon on Christmas Eve, and find tweets announcing a game hint. Looks like I won't be seeing much of my family today... - Karibou [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-03-2004, 21:29
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Code Size

What was the final size of everyone's code?
Ours was 30k
__________________
Suddenly being rejected from college feels right during the build season. Now I am a mentor.
  #2   Spotlight this post!  
Unread 06-03-2004, 21:34
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Code Size

Quote:
Originally Posted by Ryan Cumings
What was the final size of everyone's code?
Ours was 30k
The hex file you mean? Or the C files, cause those would be pretty big...
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #3   Spotlight this post!  
Unread 06-03-2004, 21:55
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Re: Code Size

Quote:
Originally Posted by Ian W.
The hex file you mean? Or the C files, cause those would be pretty big...
I would have to say the hex files. It would be really hard to measure the C file size because of comments and whitespacing differences amoung teams.
__________________
Suddenly being rejected from college feels right during the build season. Now I am a mentor.
  #4   Spotlight this post!  
Unread 06-03-2004, 22:13
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Code Size

Quote:
Originally Posted by Ryan Cumings
I would have to say the hex files. It would be really hard to measure the C file size because of comments and whitespacing differences amoung teams.
In that case, my hex file is 28k, but I have a bunch of stuff I have to add still, so it'll grow a bit.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #5   Spotlight this post!  
Unread 06-03-2004, 22:17
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Code Size

exactly. the program's not done till competition... and even then not necessarily

btw, if anyone wants to toss around wacky code ideas in st. louis, find me at the prank monkeys' pit

~Dav
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #6   Spotlight this post!  
Unread 06-03-2004, 22:59
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Re: Code Size

Quote:
Originally Posted by deltacoder1020
exactly. the program's not done till competition... and even then not necessarily

btw, if anyone wants to toss around wacky code ideas in st. louis, find me at the prank monkeys' pit

~Dav
Well competition is done for us this year. Got a technical award for the code in Manch Vegas.
__________________
Suddenly being rejected from college feels right during the build season. Now I am a mentor.
  #7   Spotlight this post!  
Unread 06-03-2004, 23:07
Daniel Daniel is offline
Daniel Katanski
#0240
Team Role: Mentor
 
Join Date: Feb 2004
Location: Monroe, MI
Posts: 32
Daniel is on a distinguished road
Re: Code Size

I read some where that the max program size can be 32K.

To find out you current program size look in the *.map file somewhere in the mid part. It will tell you your program size. * is the name of your project.
  #8   Spotlight this post!  
Unread 07-03-2004, 08:36
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Code Size

My "program memory utilization" is 46%. The actual HEX file size was 43.4k.
__________________

  #9   Spotlight this post!  
Unread 07-03-2004, 17:17
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: Code Size

i dont know the exact size of the hex file... but we overran the memory in the RC, producing a nasty ram dump and some WIERD errors....
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #10   Spotlight this post!  
Unread 07-03-2004, 19:12
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: Code Size

39K in the hex file and 40% utilization in the map file.
  #11   Spotlight this post!  
Unread 07-03-2004, 19:21
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Code Size

16.4K, 17%. But the autonomous is going to be totally revamped, so I'll repost when that happens.
[Edit: Printf_Lib adds about 12K]

Last edited by Astronouth7303 : 07-03-2004 at 21:23.
  #12   Spotlight this post!  
Unread 07-03-2004, 20:52
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Code Size

Quote:
Originally Posted by Astronouth7303
16.4K, 17%. But the autonomous is going to be totally revamped, so I'll repost when that happens.
How'd you get it to only 16k? Our's really isn't that complicated and has all the non-vital stuff removed and it's still 40k something. What are the revamps you're doing?
__________________

  #13   Spotlight this post!  
Unread 07-03-2004, 20:56
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Code Size

Going beyond arrays. Encoders, gyros, all the fun stuff

I'll post code later
  #14   Spotlight this post!  
Unread 08-03-2004, 08:46
Keys Keys is offline
Registered User
AKA: Tony
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Oct 2002
Location: Pembroke, NH
Posts: 19
Keys is an unknown quantity at this point
Send a message via ICQ to Keys Send a message via AIM to Keys Send a message via Yahoo to Keys
Re: Code Size

Quote:
Originally Posted by Ryan Cumings
Well competition is done for us this year. Got a technical award for the code in Manch Vegas.
Actually the award was for an innovative control idea. Our awesome switchbox played a role in that.
  #15   Spotlight this post!  
Unread 08-03-2004, 09:56
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Code Size

make sure you comment out ALL the printF statements if you want to min the amount of code used

and they are in other places - like main.c - if you have only one printf statement the compiler dumps a TON of junk into your hex file.
Closed Thread


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
What is your most prefered programming language? Hailfire Programming 156 19-01-2005 21:42
Interrupt timer, executing code asap? SeanCassidy Programming 10 07-03-2004 01:47
How to measure execution time? And code size? gnormhurst Programming 17 17-02-2004 08:06
Inserting Naviagation code into Default code? actorindp Programming 3 28-01-2004 18:12
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46


All times are GMT -5. The time now is 03:09.

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