473,791 Members | 2,949 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c++ runtime library

hello every one ,
this may be very basic question and may be a bit out of topic ,,

can anyone please tell me what are the functions of runtime library
and are they the one which create the program stack, manages heap???

and how can i find out that does my compiler (or linker) produces
dynamically linked runtime libraries (if so how can i make it to do it
statically on gnu g++ on fedora c8)

mohan
Aug 21 '08 #1
2 2252
mohi wrote:
hello every one ,
this may be very basic question and may be a bit out of topic ,,

can anyone please tell me what are the functions of runtime library
and are they the one which create the program stack, manages heap???
The list is too long to put in a newsgroup posting. Please get a copy
of the Standard (better both C and C++), you'll have all the information
you need. Or get a copy of "The C++ Standard Library: A Tutorial And a
Reference" by Nicolai Josuttis.
and how can i find out that does my compiler (or linker) produces
dynamically linked runtime libraries (if so how can i make it to do it
statically on gnu g++ on fedora c8)
Your compiler should have the documentation tell you about the ways to
achieve what you need. In lieu of the documentation you could use a
book or some other third-party document. Check the technical section in
your nearest book store. Also, ask in one of the 'comp.os.linux. *'
newsgroups.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Aug 21 '08 #2
mohi <mo**********@g mail.comkirjuta s:
hello every one ,
this may be very basic question and may be a bit out of topic ,,

can anyone please tell me what are the functions of runtime library
and are they the one which create the program stack, manages heap???
The "runtime library" usually refers to the C runtime library, which
contains implementations of functions like fopen() and printf(). Stack
management is typically mostly done by the compiler without any library
help, except for some things like alloca(). OTOH, heap management is
usually done by runtime library (malloc(), free(), etc.)

For performing its tasks the runtime library often calls the underlying
OS functions like open() or CreateFile(). One of the tasks of the runtime
library is to provide a portable interface to C programs.

For C++ programs there is also C++ runtime library (called STL usually),
which contains implementations of things like std::ostream and
std::vector. For performing its tasks, it may use the underlying C
runtime library or call the OS functions directly.

If you are working on Linux, then the man pages contain C runtime library
functions in section 3 and OS calls in section 2. This number is
displayed right after the function name in the man page header.
Unfortunately, the man system usually does not contain any C++ library
documentation.
and how can i find out that does my compiler (or linker) produces
dynamically linked runtime libraries (if so how can i make it to do it
statically on gnu g++ on fedora c8)
There is probably some linker switch, but why should you care? In any
case, the runtime libraries are normally not produced by your compiler,
they are preinstalled, possibly both the dynamic and static versions.

hth
Paavo

Aug 21 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1701
by: Lumpierbritches | last post by:
Thank you in advance for any and all assistance, it is greatly appreciated. I have a Universal MSDN and AC2003 Runtime, but I'm used to AC97 Setup Runtime. How do you setup AC2003 for runtime installation? I have a couple of applications I'm migrating from AC97 to AC2003 and I have the runtime file, but can't find anything that shows how to create a stand alone runtime application: HELP!!! Michael
5
3073
by: Gerhard Menzl | last post by:
When creating a Managed C++ DLL using the Visual Studio 7.1 Solution Explorer (by selecting Add New Project and then either choosing Class Library (.NET) or Windows Control Library (.NET)), the IDE sets the /MT(d) compiler switch (statically linked multithreaded C runtime library) by default. This is fine with me, as it relieves me from having to redistribute MSVCR71(D).DLL with my application. However, as soon as a single runtime...
8
34672
by: Subra Mallampalli | last post by:
Hi, I am trying to use <runtime> section within the web.config file. However, the contents of the <runtime> section seem to be ignored. What am i missing here? Is <runtime> section not used by web apps? Any help is greatly appreciated. Thanks,
1
1300
by: Boni | last post by:
Dear all, were can I get an info about a Run-Time library to to use. What are advantages of using Multithreaded or Multithreaded dll. Thanks a lot, Boni
1
1692
by: Pascalus | last post by:
Hi there! I have a problem with the delete operator to destroy a (char*). It used to work since today. I don't know what I may have changed in the project and/or the solution (probably in the properties or what) to cause this problem... I have an app written in cpp.NET. In one function, I call an external function from a win32 DLL of my own. Here is the body: #include "myDll.h" void myCppNetFunction(...) { char* str = NULL;
33
7407
by: larpup | last post by:
I checked all my references prior to compiling. The mdb or mde works perfectly with full version of A2003. When running on a computer with RunTime i receive an error that a reference is broken to msoutl.olb version 9.2. Can anyone shed some light on this as I need to deploy this application as soon as possible. Any information regarding this would be greatly appreciated.
21
5250
by: Paul Edwards | last post by:
I have written a public domain (not GPL etc) C runtime library (PDPCLIB) for DOS, OS/2 and MVS. You can see it here: http://sourceforge.net/projects/pdos/ I now wish to port it to Win32, so that I can create executables to run under Windows 98 command prompt where every byte of the executable is from public domain code. I'm only interested in writing strictly conforming C89 programs,
6
2601
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, If I am using Visual Studio 2005 to build a C# Class Library (COM), it is as default dependent on .Net Runtime Framework 2.0 when running? If I am using Visual Studio 2003 to build a C# Class Library (COM), it is as default dependent on .Net Runtime Framework 1.1 when running? How to check the .Net Framework Runtime dependencies when using Visual Studio?
7
8855
ADezii
by: ADezii | last post by:
The next series of Tips will involve the Microsoft Scripting Runtime Library (Scrrun.dll). This Library is, in my humble opinion, one of the most useful and practical Libraries ever created. With the Scripting Runtime Library, you can retrieve information related to Drives, Folders, Files, and Text Files and set/retrieve certain Attributes of Drives, Folders, Files, and Text Files. Through Methods exposed by this Library, you can also manipulate...
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.