473,756 Members | 9,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

trying to run PurifyPlus in windows

Hi -
I'm having some trouble trying to run PurifyPlus in windows using
cygwin. Just to try and get it rollin', I set up a basic helloworld.c
program.

I compile/link as:

gcc -c helloworld.c
purify gcc helloworld.o -o helloworld

And rather than instrumenting the helloworld object file, it appears
that purify is attempting to instrument gcc.exe
(%CYGWIN_HOME%/bin/gcc.exe).

Is it even possible to run purify with cygwin gcc/g++? Or is the
windows version of purify very different from the unix/solaris version?

Sorry if this is obscure/offtopic - I'm getting slightly desperate
here.
Thanks - have a good afternoon.
Matty U!

helloworld.c
-------------
#include <stdio.h>

int main() {
printf("Hello World!");
}
-------------

Nov 14 '05 #1
5 2385
In article <11************ **********@o13g 2000cwo.googleg roups.com>,
mattyulrich <ma*********@ya hoo.com> wrote:
:I'm having some trouble trying to run PurifyPlus in windows using
:cygwin. Just to try and get it rollin', I set up a basic helloworld.c
:program.
:I compile/link as:

:gcc -c helloworld.c
:purify gcc helloworld.o -o helloworld

gcc -o helloworld helloworld.c
purify helloworld

I do not know what naming convention Purify uses in windows; in unix
this would produce helloworld.pure

:#include <stdio.h>
:int main() {
: printf("Hello World!");
:}

If you are using Standard C, you should use int main(void)
instead of leaving out the parameter. Also, you probably want
a \n before your closing quote.
--
This is not the same .sig the second time you read it.
Nov 14 '05 #2
Thanks for the advice - unfortunately, it appears that the windows
version of purify is misbehaving. I suspect it may not support
cygwin/gnu compilation - of course, I can't be sure of anything right
now. I'm going to keep this on my mind and examine a few other memory
profiling programs. Any suggestions?
Thanks - have a good one.
Matt

Nov 14 '05 #3
mattyulrich wrote:

Thanks for the advice - unfortunately, it appears that the windows
version of purify is misbehaving. I suspect it may not support
cygwin/gnu compilation - of course, I can't be sure of anything
right now. I'm going to keep this on my mind and examine a few
other memory profiling programs. Any suggestions?


If you are using cygwin/gcc just try "info gprof" and you have it
all. No need for expensive stuff with bugs.

--
Chuck F (cb********@yah oo.com) (cb********@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
Nov 14 '05 #4
CBFalconer wrote:
mattyulrich wrote:

Thanks for the advice - unfortunately, it appears that the windows
version of purify is misbehaving. I suspect it may not support
cygwin/gnu compilation - of course, I can't be sure of anything
right now. I'm going to keep this on my mind and examine a few
other memory profiling programs. Any suggestions?


If you are using cygwin/gcc just try "info gprof" and you have it
all. No need for expensive stuff with bugs.

gprof is not a memory profiler tool. I am not sure valgrind is ported on
cygwin.

Krishanu
Nov 14 '05 #5
On 1 Mar 2005 14:54:49 -0800, "mattyulric h" <ma*********@ya hoo.com>
wrote:
Thanks for the advice - unfortunately, it appears that the windows
version of purify is misbehaving. I suspect it may not support
cygwin/gnu compilation - of course, I can't be sure of anything right
now. I'm going to keep this on my mind and examine a few other memory
profiling programs. Any suggestions?
Yes - post your question in a forum where Purify or Windows, or both,
are topical. You are *much* more likely to get good help than you are
here, where the topic is the C language itself, not tools or specific
implementations .
Thanks - have a good one.
Matt


--
Al Balmer
Balmer Consulting
re************* ***********@att .net
Nov 14 '05 #6

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

Similar topics

0
1344
by: Josh Buedel | last post by:
I've been evaluating PurifyPlus and DevPartner for their memory analysis features when doing C# development. For the most part I find them to be nearly identical in functionality. PurifyPlus gives a memory graph showing the entire application lifetime, whereas DevPartner only shows the last minute or so. But DevPartner was easier to get up and running with, and it has a friendlier look and feel, for whatever that's worth. Does...
0
1199
by: Rocky | last post by:
Hi, I have just uninstalled a demo of Rational Rose, however the splash screen still shows PurifyPlus and also there is PurifyPlus menu still available. I looked in the registry but it does not appear under InstalledProducts. Any ideas? Regards Rocky
0
1947
by: Scotter | last post by:
Hi - I posted this message in the microsoft.public.inetserver.iis group, as well. I hope someone can help. My client is frantic. Platform: Windows 2003 Server Enterprise Edition, latest MDAC 2.8 Trying to run this ASP.NET app. It has worked before. No code has changed so I'm convinced the problem is with some server settings.
5
2141
by: tshad | last post by:
I am trying to access my log files and am running into a permissions problem. I am doing the following: ****************************************************************** private void PopulateSiteBox() { drpSiteBox.Items.Clear(); string FILE_PATH = @"\\" +txtMachine.Text +
7
3836
by: John Blair | last post by:
Hi, I am trying to get the datacache1 sample working on my PC. I have downloaded the MSDE 2000 sample SQL Server database and the pubs sample database and installed it. I can view the contents of the pubs database. However, i have trouble connecting to this database from VB.Net The connection string is:
5
3644
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As New System.Diagnostics.Process 'p.Start(MDEPDirStr & "macrun.exe", sPPTOut) p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE") 'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
0
4091
by: Luke Herbert | last post by:
I am very new to C# and have been trying to get to grips with it by writing a small tool to detect a USB key being inserted and then backup user specified files to the key. I have written some code and been able to construct a WMI query and can even get the output of this query to display to the console but not to a TextBox on my form. I fear it is embarassingly obvious but having looked at a whole heap of books (not read them in their...
2
9289
by: Viewer T. | last post by:
I am trying to write a script that deletes certain files based on certain criteria. What I am trying to do is to automate the process of deleting certain malware files that disguise themselves as system files and hidden files. When I use os.remove() after importing the os module is raises a Windows Error: Access denied probably because the files have disguised themselves as system files. Is there anway to get adequate privileges under...
3
1408
by: =?Utf-8?B?R3VubmFy?= | last post by:
Hi everybody! I am experiencing a problem when trying to run a C# .NET user control in MSIE on Windows 2000. On Windows XP SP2, the same code runs without problems. The .NET security settings have been set to full trust, the IE security to low, but still the component does not run. Does anybody know if or what difference is there between Windows XP and 2000 in terms of running .NET user controls in IE?
0
9482
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, 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...
0
9292
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10062
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, 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...
0
9901
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9878
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,...
1
7282
isladogs
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...
0
5167
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...
0
5322
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3827
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.