Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean by C++ runtime?

Tags:

c++

runtime

What are all the activities done by C++ runtime?

like image 634
yesraaj Avatar asked Dec 01 '09 07:12

yesraaj


2 Answers

It handles startup and shutdown of your application, and the core services it needs to run - things like initialising the stack and static variables, and providing the heap and default memory allocators.

like image 187
Jason Williams Avatar answered Sep 22 '22 00:09

Jason Williams


From Wikipedia:

The term C run-time library is used on some platforms to refer to a set of base libraries, which may be distributed in dynamically linkable form with an operating system (with or without header files), or distributed with a C compiler. Another term sometimes used is libc. Not just any library is called the run-time library; run time in this context means the run-time support package associated with a compiler which is understood to make a language complete. The run-time support provides not only the C standard library functions, but possibly other material needed create an environment for the C program, such as initialization prior to the invocation of the main function, or subroutines to provide arithmetic operations missing from the CPU that are needed by code generated by the C compiler.

like image 22
psychotik Avatar answered Sep 21 '22 00:09

psychotik