473,327 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Currently doing development using C language, for final product, reduce code size?

365 100+
Currently I am doing development using C language, I have all debugging symbols and all enabled, for final product, I don't want all debugging symbols and all, I want very less code size, can I do it?. also is there anyway I can do some performance tuning for C code?. any tools?.

Thanks.
Nov 5 '09 #1
5 1902
donbock
2,426 Expert 2GB
The method for enabling and disabling debug capability depends on which compiler and/or IDE you're using.
Nov 6 '09 #2
Ectara
24
Also, optimizations for your code can be enabled in many compilers to increase speed and often remove dead code, cutting down size.
Nov 6 '09 #3
Tassos Souris
152 100+
As donbock and Ectara pointed out tell us which environment you use and we can point you to which tools to use.
Nov 7 '09 #4
tvnaidu
365 100+
Thanks. Right now I got some code from chip vendor, I am not using all the modules, looking for some tool which should pointout which code is not using and I wpuld like to disable that code then it should improve the CPU performance. also for timebeing enabled all debugging symbols and for final product, don't need these. Looking for some performance tuning tools too.
Nov 8 '09 #5
donbock
2,426 Expert 2GB
Code that doesn't execute is sometimes called 'dead code'. Removing dead code does nothing to improve CPU performance because 0% of the CPU is used to [not] execute the dead code.

Removing dead code will reduce the size of your executable image, so your program consumes less memory and takes less time to launch.
Nov 8 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Thomas Philips | last post by:
To compute the product of a list of numbers, I tried entering >>>reduce(__mul__,) Traceback (most recent call last): File "<pyshell#0>", line 1, in -toplevel- reduce(__mul__,) NameError: name...
0
by: Mark | last post by:
I'm betting it me. Here is the simple schema I'm using: <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"...
37
by: seberino | last post by:
I've been reading the beloved Paul Graham's "Hackers and Painters". He claims he developed a web app at light speed using Lisp and lots of macros. It got me curious if Lisp is inherently faster...
3
by: boeledi | last post by:
Dear All, (First of all this is not a c# piece of code but it does not really matter). I would really appreciate if someone could help me. I am developing an ASP.NET web site and I have to...
0
by: fionab | last post by:
Reading, Berkshire, UK - Crainiate Software announce the release of Objecto Framework 1.0, a new component framework 5 years in development, designed to make it easy for programmers to create agile...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
2
by: teddymeu | last post by:
Hi Guys, this is kinda complicated but ill do my best to explain. I have two tables. products and categories. Products holds product info and an image, its primary key is ProductID. Category table...
1
by: anniefs | last post by:
hi help me i m so much stuck int he code and i have no time .... i used ASP VBscipt and javascript functions with MS database javascript function add records in MS DB by using ASP vbscript...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.