User Profile
Collapse
-
callgrind output
I ran callgrind on my program, collecting sysTime (what I think to be "time spent in system calls"). However, when I sort by self-cost under the sysTime metric, among the top scorers is memcpy. But, looking at the memcpy source, it doesn't seem to use any system calls. What's going on? -
Thanks for the reply, Banfa. I'm still a little confused.
I understand that compiler writers can use a plethora of different optimization techniques. It seems that some compilers even have built-in functions (which seems to be distinct from the libraries they offer). Am I right in saying that each of these compilers will take any C++ file (with proper syntax and semantics) and compile it into a a binary file for some machine? Are their... -
khoda started a topic definitions of compiler, standard library, standard template library, etc. (c++)in Cdefinitions of compiler, standard library, standard template library, etc. (c++)
i'm getting a little confused with some terminology. it's hard to get all of these questions answered through google.
please correct me if i make any mistakes in my assumptions when asking the following questions:
i understand that there are many different compilers for c++. among them is the gnu c++ compiler, part of the gnu compiler collection (gcc). from my understanding, a compiler has a set of rules for syntax and... -
bash script to run program N times
wasn't sure what forum to put this in, but I'm sure someone here can help me.
I have a program that I want to run N times. I'd like to make a bash script that, when run like this:
./script.sh 5
will run my program 5 times, where my program can be run like this:
./myprogram
Basically I just need a loop that will execute my program, then iterate when the execution exits. ... -
Thanks weaknessforcats . That strategy makes sense, but I'm looking for the allocator to do this for me. I'm assuming __pool_alloc does this, though some other allocator may do this better.
My question is: Is __pool_alloc what I'm looking for? If so, how do I use it?Leave a comment:
-
Using __pool_alloc or some other allocator?
Let’s say I have a hash map from strings to a user-defined object of type X. Thoughout the lifetime of my program, I have millions of these objects allocated/free’d. A friend mentioned that I look into some kind of allocator that will save the ‘template’ of my objects when I free, so that I don’t have to incur the additional heap-searching overhead to allocate my next object. I read something about the __pool_alloc but it is unclear to...
No activity results to display
Show More
Leave a comment: