473,396 Members | 1,784 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,396 software developers and data experts.

Any easy way to find functions that are not called

Question: Is there any way to use the Visual Studio .NET environment
to easily identify C and C++ functions that are not called?

If not, does anyone have any recommendations on some other software
that I can quickly get my hands on to do this?

Right now, I only need to do it once.
Nov 16 '05 #1
2 1400
run a profiler?
"Frank Lopez" <fr************@yahoo.com> wrote in message
news:b6*************************@posting.google.co m...
Question: Is there any way to use the Visual Studio .NET environment
to easily identify C and C++ functions that are not called?

If not, does anyone have any recommendations on some other software
that I can quickly get my hands on to do this?

Right now, I only need to do it once.

Nov 16 '05 #2
Frank Lopez wrote:
Question: Is there any way to use the Visual Studio .NET environment
to easily identify C and C++ functions that are not called?

If not, does anyone have any recommendations on some other software
that I can quickly get my hands on to do this?

Right now, I only need to do it once.


Compile everything with /Gy.

Link with /opt:ref and /verbose. Search the linker output (it could be
quite long -redirect it into a file) for lines that start with Discarded:
these are your uncalled functions. Note that some of them will be
libraries, not your code.

If you have uncalled virtual functions, they're harder to find because the
compiiler will force a reference to them so the linker won't pick them out.

-cd
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: JW | last post by:
I'm displaying product thumbnails with brief descriptions on web pages. Clicking on the product does a javascript popup with larger image and detailed description info passed to the javascript...
6
by: Johnathan Doe | last post by:
Hi, I'm looking for an easy way to do web development with Python (session handling a-la ASP/JSP/PHP, that kind of thing). I've looked at PythonWeb.org but it has bugs because it's not tested on...
2
by: Peter David | last post by:
Hi all, 1) I have created a huge XML "data base" consisting of people with <name>Charlie</name> <address>High street></address> etc. I wanna use this xml-data base for various HTM-pages for me...
1
by: alter | last post by:
Hi, I'm a newbie to the world of C/C++ and I was planning to write a relatively simple program for handling biological sequences. I wanted to use a C++ package called seqio to import sequences...
5
by: mp141 | last post by:
Hello, I was wondering if there was an easy way for me to calculate the mode for a field of values in one query. I have one field of values say Names and all I want it to return is one record of...
1
by: Matt Mayers | last post by:
I'm here to promote my C library project for writing CGI progs in C. The project is called Stutter and can be found at http://freshmeat.net/projects/stutter I'm horrible, I know. =) -Matt
4
by: Ahmed S. Badran | last post by:
Hi, Is there a tool that would parse a C file and tell me the list of functions that are being called in the file. The C file includes header files for the functions being used. Also is there...
6
by: bobueland | last post by:
The module string has a function called translate. I tried to find the source code for that function. In: C:\Python24\Lib there is one file called string.py I open it and it says
6
by: Henryk | last post by:
I did a lot of delphi GUI programming recently. In my experience most of the time you just want to throw a standard exception with a descriptive message. Then all calling functions can handle...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.