Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Code Size (http://www.chiefdelphi.com/forums/showthread.php?t=26454)

deltacoder1020 08-03-2004 10:13

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)

jacob_dilles 08-03-2004 11:29

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

Ryan M. 08-03-2004 14:18

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.

deltacoder1020 08-03-2004 14:49

Re: Code Size
 
Quote:

Originally Posted by Texan
In addition you should also remove printf_lib.* from the project.

that's what i said.

Ryan M. 08-03-2004 15:11

Re: Code Size
 
Quote:

Originally Posted by deltacoder1020
that's what i said.

Whoops... Didn't notice that. Sorry for the double respones. :rolleyes:

Astronouth7303 08-03-2004 17:48

Re: Code Size
 
I modified my printf_lib.c so it only compiles if I define _debug_.


All times are GMT -5. The time now is 22:26.

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