Open in app

Sign in

Write

Sign in

Heart Bleed
Heart Bleed

14 Followers

Home

About

Published in

Obscure System

·Feb 15, 2021

Understanding storage of strings in C++ - Part 2: Stack

In the previous article(Understanding storage of strings in C++-Part 1…. Stack or heap?), we tried to understand if string class stores the sting in stack or heap. In a gist, what we concluded in the previous article was that, when the strings are small, they are stared in the stack…

Cpp

4 min read

Cpp

4 min read


Published in

Obscure System

·Aug 3, 2020

Understanding storage of strings in C++ - Part 1…. Stack or heap?

Programming in C was very straight forward. At least in terms of memory. We know where the variables are stored. They are not stored in the heap until unless we use malloc/calloc. C++ however have many many classes and libraries that abstract the storage away from the developer. It is…

C

2 min read

C

2 min read


Published in

Obscure System

·Jul 1, 2019

Symbolism in NM

NM is a GNU development tool available in linux. It is used to extract symbols from object file and depict what kind of symbol it is. There are various types symbols nm can extract. In this article I am planning to explain a few of them. Before we understand…

Operating Systems

5 min read

Symbolism in NM
Symbolism in NM
Operating Systems

5 min read


Published in

Obscure System

·May 26, 2019

rpath vs runpath

Before we understand the difference between rpath and runpath, we need to understand where they are used. Both rpath and runpath are used to specify directories to search for shared libraries(dynamic libraries). If you are not sure what shared libraries is, I have a story written on Static vs Dynamic…

C

6 min read

C

6 min read


Published in

Obscure System

·May 23, 2019

Static vs Dynamic(Shared) Library

Before we go to the difference between static and dynamic library let us understand what a library is and its uses. Library Library is a piece of packaged code that can be reused across multiple executable. Lets try a simple example to understand it. The above program is a…

Programming

3 min read

Programming

3 min read


Published in

Obscure System

·May 18, 2019

Fork vs Thread

Before we understand the difference between a fork and thread we need to understand what is a process and elements of process. Process A process is a program in execution. When a operating system executes a program it is called a process. So we may have a single program executed simultaneously…

Operating Systems

3 min read

Operating Systems

3 min read


Published in

Obscure System

·May 15, 2019

MV vs CP

What is the difference between a mv and cp in linux. I use it all the time and never knew what is happening behind the scenes. I decided to understand learn by experiments as theory is always obscure. This is article assumes the reader has basic C knowledge. mv …

Operating Systems

5 min read

Operating Systems

5 min read

Heart Bleed

Heart Bleed

14 Followers

Software Engineer

Following
  • Fahim ul Haq

    Fahim ul Haq

  • Andrei Kvapil

    Andrei Kvapil

  • Vickie Li

    Vickie Li

  • Super Albert

    Super Albert

  • Loft Labs

    Loft Labs

See all (19)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams