New answers tagged c
1
vote
How would I go about writing my own implementation of Win32 functions?
From a technical perspective. Yes, you can do this. It can be accomplished by something called DLL search order hijacking. However this is a pretty rudimentary security vulnerability and is likely ...
6
votes
Accepted
When the stack frames become computationally expensive
There are two questions here:
What is the cost of function call?
Is inlining a function worth it?
So first of all a function call costs. Saving registers, setting up frame, two jumps, loading ...
-1
votes
When the stack frames become computationally expensive
function call overhead
When you speak of stack frames that are "computationally expensive"
you're really talking about the expense incurred to save state,
transmit arguments, receive result, ...
0
votes
When did Undefined Behavior in C jump the causality barrier
"and it's been enshrined in the C11 standard which explicitly states that if Undefined Behavior occurs at any point in a program's execution, the behavior of the entire program retroactively ...
4
votes
C++: Good approach to handle libxml2 resource management in a wrapper
#1 sounds good, your XMLNode just needs to distinguish between the cases where the node is in an XMLDocument, or not (_xmlNode struct has a doc field, I looked it up). When it is, don't free the node ...
Top 50 recent answers are included
Related Tags
c × 1319c++ × 290
programming-languages × 75
design × 63
compiler × 60
pointers × 54
java × 53
coding-style × 53
embedded-systems × 47
memory × 46
data-structures × 45
multithreading × 40
linux × 40
programming-practices × 36
object-oriented × 35
python × 34
assembly × 33
algorithms × 30
libraries × 29
performance × 27
api-design × 25
architecture × 24
array × 24
design-patterns × 23
history × 23