Posts tagged "C":
Memory layouts
Whenever a program is run, it has two kinds of memories, stack and heap.
(...)OS Notes
Manages runtime of the system. Provides virtualization to the underlying system.
(...)UGRC hints
As of now printing everything using printk
functions.
Memory Ordering in C++ and OS support (Linux)
Some basic things to note:
(...)C Practice Questions
THESE QUESTIONS ARE HARD! PROCEED WITH CAUTION!
(...)GOT and PLT
Notes on C
Must read: Brian Jorgensen Hall's blog
(...)Rvalue references
Introduced on C++11, these are references to rvalues. These exist to extend the object lifetime of an rvalue, say, a function return value.
(...)Concurrency
C++ 11: Threads
(...)Registers in x86 and friends
There are 3 types of General-purpose data registers they are:
(...)File Descriptors
On *nix systems, file descriptors are a number that are given to files
that have a stream attached to them. C can directly read and write from
file descriptors using the read()
command that takes a file
descriptor, a buffer and a length to be read.
OpenMP Optimizations
Who knew parallelisation would be so easy!
(...)C Macros
#define
defines a variable to a value (or nothing if it's not defined). It
is a literal find and replace kinda stuff, so be aware of what's happening
after rewrites. It can also be used in a functional fashion and has a bunch
of operators.