473,605 Members | 2,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is space for symbol table allocated from heap?

It will be great if some one can explain in detail about structure of
process in memory...where is symbol table etc..located?

Jan 11 '06 #1
4 2546
>It will be great if some one can explain in detail about structure of
process in memory...where is symbol table etc..located?

If the program is static-linked, who says the symbol table is
anywhere in memory? If the program has been stripped, who says
the symbol table exists at all?

Gordon L. Burditt
Jan 11 '06 #2
So, can u please explain the concept of symbol table and when does it
exist and where?

Jan 11 '06 #3
curious <me********@yah oo.com> wrote:
So, can u please explain the concept of symbol table and when does it
exist and where?

1) Do some searching first (e.g. google), there is a *lot* of info available
about this subject

2) This is mostly off-topic. Please ask the question at an appropriate
newsgroup or mailing list discussing your platform or compiler.
^X^Cy^K^X^C^C^C ^C
Jan 11 '06 #4
In article <11************ *********@z14g2 000cwz.googlegr oups.com>,
curious <me********@yah oo.com> wrote:
It will be great if some one can explain in detail about structure of
process in memory...where is symbol table etc..located?

That can vary between two different versions of the same compiler
for the same system. There is no standard other than that which
might happen to be imposed by a particular operating system.

When symbol tables exist, they are usually not kept as part of the
process: they are usually kept as part of the file that stores the
executable. The structure of the files that store executables can
vary from version to version of the same operating system. There is
no one standard.

There are a some on-disk symbol table formats that OS developers tend
to implement so that they do not have to reinvent the functionality
and to make it easier to borrow debuggers such as 'gdb'. One of those
more common on-disk symbol table formats is known as "dwarf".

There are some on-disk executable image formats that OS developers
tend to implement so that they do not have to reinvent functionality
and to make it easier to borrow debuggers and compilers. Some of
the more common on-disk executable image formats are ELF and COFF.

The format of a symbol table on-disk or of an executable image on-disk
might be -very- different than the structure of an executing process.
The entire concept of "symbol table" and "executable image" on-disk
is outside of the C standard. For more information, you need to look
at the documentation for particular systems you are interested in.
"law -- it's a commodity"
-- Andrew Ryan (The Globe and Mail, 2005/11/26)
Jan 11 '06 #5

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

Similar topics

by: songfire | last post by:
Hi everybody! Just wondering if it is possible to point to variables in the heap. For example, is this okay? int * ptr_to_DAIA; // pointer to dynamically allocated integer array ptr_to_DAIA = new int ; for(i=0; i<SIZE; i++) ptr_to_DAIA=i; // now say I want a pointer that points to the element that contains value TARGET
by: Ansti | last post by:
I have a huge table in it own tablespace (250 GB). I just deleted more than half of the columns in that table, but I didn't see any change in allocated space. I did DBCC CLEANTABLE and DBCC SHRINKFILE, but nothing. MS also says that CLEANTABLE only reclaims space for columns with text, char datatypes. How can I get space back for integer, decimal, number datatypes? I'm just all out of ideas.
by: Robert Potthast | last post by:
Hello, I want to make my garbage collector more safe. To make it more safe I need to know if an object has been allocated on the stack or on the heap using the operator new. My garbage collector uses a mixture of reference counting and smart pointers. I have got a base class ("Object") which handles all the memory management stuff. I have worked out different approaches to pass the info to my base class (won't name all):
by: PengYu.UT | last post by:
Hi, Maybe this is an simple question. How can I insure that the objects of a class must be allocated in the heap? Thanks, Peng
by: ballpointpenthief | last post by:
If I have malloc()'ed a pointer and want to read from it as if it were an array, I need to know that I won't be reading past the last index. If this is a pointer to a pointer, a common technique seems to be setting a NULL pointer to the end of the list, and here we know that the allocated memory has been exhausted. All good. When this is a pointer to another type, say int, I could have a variable that records how much memory is being...
by: Ajay | last post by:
Hi all, Can I know what is the stack space and heap space allocated by the compiler.Can i increase it or decrease it.if yes,pleae tell me theway to do it.Thanks in advance. Cheers, Ajay
by: Virtual_X | last post by:
Hello why when we define a pointer for any type it takes a memory space such as the type it points to and it's just hold an address not data ex: int *x; int y; x=&y;
by: vnpatriot7 | last post by:
Hi everybody, I have two questions: 1) About memory space in C++ 2) About global and static variable As what I read somewhere that after compilation process which translate C++ code into machine language, your application is given a certain amount of memory to use, that memory space is divided into 4 segments as follow a. Code segment, where all application code is stored b. Data segment, where global data is stored c. Stack segment,...
by: mattmao | last post by:
Hello everyone, this is my first thread in this .NET forum. Since I am studying C#.NET in this semester, I reckon this would be just the right place for my asking questions regarding the C# language and the .NET framework:) I got some experience of ANSI C where you declare an array in stack, so: int myArray; would allocate a continous piece of memory in stack which can contain 10 integers in total.
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...
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,...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.