C/C++ speed optimization bible/resources/pointers needed!

This is a discussion on C/C++ speed optimization bible/resources/pointers needed! within the Other Technologies forums in category; "Alex Vinokur" <alexvn @ users.sourceforge.net> wrote in message news:1189766653.149309.12390 @ r34g2000hsd.googlegro ups.com... > On Jul 27, 12:19 am, lunamoonm...@gmail.com wrote: >> C/C++ speed optimization bible/resources/pointers needed! >> > [snip] > > Look at C/C++ Program Perfometer > http://sourceforge.net/projects/cpp-perfometer/ > > The C/C++ Program Perfometer is an open source tool which enables the > programmer to measure the comparative performance of a C/C++ program > or of separated pieces of code by one of several desired metrics: > e.g., time, memory, or metrics defined by the programmer. I made the download and it looks to me that the closest thing to ...

Go Back   Application Development Forum > Other Technologies

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #181  
Old 09-14-2007, 08:13 PM
Wade Ward
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!




"Alex Vinokur" <alexvn@users.sourceforge.net> wrote in message
news:1189766653.149309.12390@r34g2000hsd.googlegro ups.com...
> On Jul 27, 12:19 am, lunamoonm...@gmail.com wrote:
>> C/C++ speed optimization bible/resources/pointers needed!
>>

> [snip]
>
> Look at C/C++ Program Perfometer
> http://sourceforge.net/projects/cpp-perfometer/
>
> The C/C++ Program Perfometer is an open source tool which enables the
> programmer to measure the comparative performance of a C/C++ program
> or of separated pieces of code by one of several desired metrics:
> e.g., time, memory, or metrics defined by the programmer.

I made the download and it looks to me that the closest thing to an
executable is several batch files. Can you discuss how to use it on a
rudimentray C program?
--
Wade Ward
wade@zaxfuuq.net
'If they took all the "And it came to pass's" out
of the Book of Mormon, it would be a pamphlet.'
--Mark Twain


Reply With Quote
  #182  
Old 09-14-2007, 08:46 PM
Logan Shaw
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!

Wade Ward wrote:
> "Alex Vinokur" <alexvn@users.sourceforge.net> wrote in message
> news:1189766653.149309.12390@r34g2000hsd.googlegro ups.com...
>> On Jul 27, 12:19 am, lunamoonm...@gmail.com wrote:
>>> C/C++ speed optimization bible/resources/pointers needed!


>> Look at C/C++ Program Perfometer
>> http://sourceforge.net/projects/cpp-perfometer/
>>
>> The C/C++ Program Perfometer is an open source tool which enables the
>> programmer to measure the comparative performance of a C/C++ program
>> or of separated pieces of code by one of several desired metrics:
>> e.g., time, memory, or metrics defined by the programmer.


> I made the download and it looks to me that the closest thing to an
> executable is several batch files. Can you discuss how to use it on a
> rudimentray C program?


Did you read the readme.txt file that was contained in the archive?

- Logan
Reply With Quote
  #183  
Old 09-14-2007, 10:01 PM
Logan Shaw
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!

Wade Ward wrote:
> "Logan Shaw" <lshaw-usenet@austin.rr.com> wrote in message
> news:46eb2b5e$0$17125$4c368faf@roadrunner.com...
>> Wade Ward wrote:


>>> "Alex Vinokur" <alexvn@users.sourceforge.net> wrote in message
>>> news:1189766653.149309.12390@r34g2000hsd.googlegro ups.com...


>>>> http://sourceforge.net/projects/cpp-perfometer/


>> Did you read the readme.txt file that was contained in the archive?


> Not when I posted, but I have now. When I run test_demo.bat, I have a dos
> window open up, do something for about a half-second then close. I don't
> feel like I'm a whole lot closer to using it on a toy C program except for
> the reading.


I guess this is a problem with either your platform or the way you
are using it. Maybe the way you launched the script caused you to
fail to see its output.

- Logan
Reply With Quote
  #184  
Old 09-14-2007, 10:18 PM
Wade Ward
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!




--Mark Twain
"Logan Shaw" <lshaw-usenet@austin.rr.com> wrote in message
news:46eb2b5e$0$17125$4c368faf@roadrunner.com...
> Wade Ward wrote:
>> "Alex Vinokur" <alexvn@users.sourceforge.net> wrote in message
>> news:1189766653.149309.12390@r34g2000hsd.googlegro ups.com...
>>> On Jul 27, 12:19 am, lunamoonm...@gmail.com wrote:
>>>> C/C++ speed optimization bible/resources/pointers needed!

>
>>> Look at C/C++ Program Perfometer
>>> http://sourceforge.net/projects/cpp-perfometer/
>>>
>>> The C/C++ Program Perfometer is an open source tool which enables the
>>> programmer to measure the comparative performance of a C/C++ program
>>> or of separated pieces of code by one of several desired metrics:
>>> e.g., time, memory, or metrics defined by the programmer.

>
>> I made the download and it looks to me that the closest thing to an
>> executable is several batch files. Can you discuss how to use it on a
>> rudimentray C program?

>
> Did you read the readme.txt file that was contained in the archive?

Not when I posted, but I have now. When I run test_demo.bat, I have a dos
window open up, do something for about a half-second then close. I don't
feel like I'm a whole lot closer to using it on a toy C program except for
the reading.
--
Wade Ward
wade@zaxfuuq.net
'If they took all the "And it came to pass's" out
of the Book of Mormon, it would be a pamphlet.'


Reply With Quote
  #185  
Old 09-14-2007, 10:49 PM
Dave Seaman
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!

On Fri, 14 Sep 2007 19:18:53 -0700, Wade Ward wrote:



> --Mark Twain
> "Logan Shaw" <lshaw-usenet@austin.rr.com> wrote in message
> news:46eb2b5e$0$17125$4c368faf@roadrunner.com...
>> Wade Ward wrote:
>>> "Alex Vinokur" <alexvn@users.sourceforge.net> wrote in message
>>> news:1189766653.149309.12390@r34g2000hsd.googlegro ups.com...
>>>> On Jul 27, 12:19 am, lunamoonm...@gmail.com wrote:
>>>>> C/C++ speed optimization bible/resources/pointers needed!

>>
>>>> Look at C/C++ Program Perfometer
>>>> http://sourceforge.net/projects/cpp-perfometer/
>>>>
>>>> The C/C++ Program Perfometer is an open source tool which enables the
>>>> programmer to measure the comparative performance of a C/C++ program
>>>> or of separated pieces of code by one of several desired metrics:
>>>> e.g., time, memory, or metrics defined by the programmer.

>>
>>> I made the download and it looks to me that the closest thing to an
>>> executable is several batch files. Can you discuss how to use it on a
>>> rudimentray C program?

>>
>> Did you read the readme.txt file that was contained in the archive?

> Not when I posted, but I have now. When I run test_demo.bat, I have a dos
> window open up, do something for about a half-second then close. I don't
> feel like I'm a whole lot closer to using it on a toy C program except for
> the reading.


There is a Makefile in the src directory, and it works for me (on a Mac),
but there does not seem to be a compile.bat file as mentioned in
readme.txt. The run_demo.bat file surely won't do anything interesting
if you haven't compiled yet. Have you tried doing a "make"?


--
Dave Seaman
Oral Arguments in Mumia Abu-Jamal Case heard May 17
U.S. Court of Appeals, Third Circuit
<http://www.abu-jamal-news.com/>
Reply With Quote
  #186  
Old 09-15-2007, 01:08 AM
Wade Ward
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!



--
Wade Ward
wade@zaxfuuq.net
'If they took all the "And it came to pass's" out
of the Book of Mormon, it would be a pamphlet.'
--Mark Twain
"Dave Seaman" <dseaman@no.such.host> wrote in message
news:fcfh81$8n4$1@mailhub227.itcs.purdue.edu...
> On Fri, 14 Sep 2007 19:18:53 -0700, Wade Ward wrote:
>
>
>
>> --Mark Twain
>> "Logan Shaw" <lshaw-usenet@austin.rr.com> wrote in message
>> news:46eb2b5e$0$17125$4c368faf@roadrunner.com...
>>> Wade Ward wrote:
>>>> "Alex Vinokur" <alexvn@users.sourceforge.net> wrote in message
>>>> news:1189766653.149309.12390@r34g2000hsd.googlegro ups.com...
>>>>> On Jul 27, 12:19 am, lunamoonm...@gmail.com wrote:
>>>>>> C/C++ speed optimization bible/resources/pointers needed!
>>>
>>>>> Look at C/C++ Program Perfometer
>>>>> http://sourceforge.net/projects/cpp-perfometer/
>>>>>
>>>>> The C/C++ Program Perfometer is an open source tool which enables the
>>>>> programmer to measure the comparative performance of a C/C++ program
>>>>> or of separated pieces of code by one of several desired metrics:
>>>>> e.g., time, memory, or metrics defined by the programmer.
>>>
>>>> I made the download and it looks to me that the closest thing to an
>>>> executable is several batch files. Can you discuss how to use it on a
>>>> rudimentray C program?
>>>
>>> Did you read the readme.txt file that was contained in the archive?

>> Not when I posted, but I have now. When I run test_demo.bat, I have a
>> dos
>> window open up, do something for about a half-second then close. I don't
>> feel like I'm a whole lot closer to using it on a toy C program except
>> for
>> the reading.

>
> There is a Makefile in the src directory, and it works for me (on a Mac),
> but there does not seem to be a compile.bat file as mentioned in
> readme.txt. The run_demo.bat file surely won't do anything interesting
> if you haven't compiled yet. Have you tried doing a "make"?

That makes it sound like there's a compiler there, but is it the point that
I have to bring my own, as well as my own source? Then I could have as a
line in a batch file something like:
echo on
gcc some_file.c
pause
--
Wade Ward


Reply With Quote
  #187  
Old 09-15-2007, 02:41 AM
Alex Vinokur
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!


"Wade Ward" <zaxfuuq@invalid.net> wrote in message news:1bqdnZzJJPU8iHbbnZ2dnUVZ_rCtnZ2d@comcast.com. ..
>
>
>
> "Alex Vinokur" <alexvn@users.sourceforge.net> wrote in message
> news:1189766653.149309.12390@r34g2000hsd.googlegro ups.com...
> > On Jul 27, 12:19 am, lunamoonm...@gmail.com wrote:
> >> C/C++ speed optimization bible/resources/pointers needed!
> >>

> > [snip]
> >
> > Look at C/C++ Program Perfometer
> > http://sourceforge.net/projects/cpp-perfometer/
> >
> > The C/C++ Program Perfometer is an open source tool which enables the
> > programmer to measure the comparative performance of a C/C++ program
> > or of separated pieces of code by one of several desired metrics:
> > e.g., time, memory, or metrics defined by the programmer.

> I made the download and it looks to me that the closest thing to an
> executable is several batch files. Can you discuss how to use it on a
> rudimentray C program?

[snip]


Hi Wade,

I am ready to answer your questions.

By the way, perhaps, is it worth continuing the discussion in special Google-group related to C/C++ Program Perfometer?:
comp.lang.c++.perfometer
http://groups.google.com/group/perfo?hl=en

See also
programming.lang.c++.sources
http://groups.google.com/group/sources?lnk=rga&hl=en

programming.lang.c++.test-results
http://groups.google.com/group/log-files?hl=en


--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn



Reply With Quote
  #188  
Old 09-15-2007, 02:57 AM
mnentwig
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!

>> Not when I posted, but I have now. When I run test_demo.bat, I have a
dos
window open up, do something for about a half-second then close

Do you run it from the command prompt? If not, open a DOS window first
(start button, "run", enter "cmd.exe"

-mn
Reply With Quote
  #189  
Old 09-15-2007, 05:55 AM
Wade Ward
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!


"Alex Vinokur" <alexvn@users.sourceforge.net> wrote in message
news:46eb7e85$0$1348$834e42db@reader.greatnowhere. com...
>
> Hi Wade,
>
> I am ready to answer your questions.
>
> By the way, perhaps, is it worth continuing the discussion in special
> Google-group related to C/C++ Program Perfometer?:
> comp.lang.c++.perfometer
> http://groups.google.com/group/perfo?hl=en
>
> See also
> programming.lang.c++.sources
> http://groups.google.com/group/sources?lnk=rga&hl=en
>
> programming.lang.c++.test-results
> http://groups.google.com/group/log-files?hl=en


I set the follow-up to
comp.lang.c++.perfometer.

.... is the world getting smaller?

I wanted to time a rudimentary C program because there was a contest
outstanding in c.l.p.misc, and I thought I could gerrymander the result.
I've got less than a half hour to beat the time, so I'll talk to you soon.

Gruß,

--
Wade Ward
wade@zaxfuuq.net
'If they took all the "And it came to pass's" out
of the Book of Mormon, it would be a pamphlet.'
--Mark Twain


Reply With Quote
  #190  
Old 09-15-2007, 09:23 AM
Dave Seaman
Guest
 
Default Re: C/C++ speed optimization bible/resources/pointers needed!

On Fri, 14 Sep 2007 22:08:32 -0700, Wade Ward wrote:
>> There is a Makefile in the src directory, and it works for me (on a Mac),
>> but there does not seem to be a compile.bat file as mentioned in
>> readme.txt. The run_demo.bat file surely won't do anything interesting
>> if you haven't compiled yet. Have you tried doing a "make"?

>That makes it sound like there's a compiler there, but is it the point that
>I have to bring my own, as well as my own source? Then I could have as a
>line in a batch file something like:
>echo on
>gcc some_file.c
>pause


Er, no, open source packages never include compilers, unless a compiler
is the actual product (as with gcc). When you buy a box of cereal, do
you expect to find a bowl, a spoon, and a carton of milk inside the
package?


--
Dave Seaman
Oral Arguments in Mumia Abu-Jamal Case heard May 17
U.S. Court of Appeals, Third Circuit
<http://www.abu-jamal-news.com/>
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:56 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.