Go to Post Flash drive? I was thinking floppy disks... :ahh: . - MrForbes [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 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.
  #8   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.
  #9   Spotlight this post!  
Unread 08-03-2004, 10:13
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

Quote:
Originally Posted by KenWittlief
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.
actually, if you truly want the smallest code possible, don't include printf_lib in the first place (this will require commenting/taking out all the printf statements anyways)
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #10   Spotlight this post!  
Unread 08-03-2004, 11:29
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

Quote:
Originally Posted by deltacoder1020
actually, if you truly want the smallest code possible, don't include printf_lib in the first place (this will require commenting/taking out all the printf statements anyways)
yeah for our last revision of autonimous i did a global find for printf and took them all out, and then un-included it. it cut down on the size by 13k
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #11   Spotlight this post!  
Unread 08-03-2004, 14:18
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 KenWittlief
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.
In addition you should also remove printf_lib.* from the project.
__________________

  #12   Spotlight this post!  
Unread 08-03-2004, 14:49
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

Quote:
Originally Posted by Texan
In addition you should also remove printf_lib.* from the project.
that's what i said.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #13   Spotlight this post!  
Unread 08-03-2004, 15:11
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 deltacoder1020
that's what i said.
Whoops... Didn't notice that. Sorry for the double respones.
__________________

  #14   Spotlight this post!  
Unread 08-03-2004, 17:48
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

I modified my printf_lib.c so it only compiles if I define _debug_.
  #15   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.
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 02:53.

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