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.
5 1912 donbock 2,426
Recognized Expert Top Contributor
The method for enabling and disabling debug capability depends on which compiler and/or IDE you're using.
Also, optimizations for your code can be enabled in many compilers to increase speed and often remove dead code, cutting down size.
As donbock and Ectara pointed out tell us which environment you use and we can point you to which tools to use.
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.
donbock 2,426
Recognized Expert Top Contributor
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 '__mul__' is not defined
I can get the answer I want by defining a function that returns the
product of two numbers:
|
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"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:version="1.0">
<xs:annotation>
<xs:appinfo>
|
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 to develop complex apps in. It would seem if you
could create your own language in Lisp using macros that that would be
quite an advantage....
I realize that Python has operator overloading and OOP so I'm not sure.
|
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 deal with images
upload.
When the user is selecting an image, I save it as such together with a
thumbnail version.
|
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
persisted business objects that are reusable, customisable and
scalable, without additional developer tools.
Objecto uses new object persistence and managed database technology to
allow developers to create objects that are seamlessly...
| |
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, I believe another set of eyes on the issue is merited.
I am a MSSQL DBA and somewhat new to ORACLE; but I have read the administrators manual having a basic thorough level of knowledge (Tho' I am still learning) and understanding of how to...
|
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 holds a category name and description and a primary key CategoryID. The producs table holds a Foreign key field called CategoryID which points to the CategoryID Primary key of the catgory table.
Ok i have two asp.net 2 vb forms. One is using a...
|
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 recordset varible
when user click the save button then some values save in the database so i write javascript function to add the records...
here is the code
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |