Questions tagged [symbol-tables]
24 questions
72
votes
10 answers
Binary Trees vs. Linked Lists vs. Hash Tables
I'm building a symbol table for a project I'm working on. I was wondering what peoples opinions are on the advantages and disadvantages of the various methods available for storing and creating a symbol table.
I've done a fair bit of searching and…

benmcredmond
- 1,702
- 2
- 15
- 22
19
votes
4 answers
What is symbol table and how is it integrated into the executable?
When I tried to debug an executable:
(gdb) break +1
No symbol table is loaded. Use the "file" command.
What does that mean exactly?
Is the symbol table appended to the executable?

user198729
- 61,774
- 108
- 250
- 348
18
votes
5 answers
No symbol table in Go?
Google's new language "Go" says on its website:
the language has been designed to be easy to analyze and can be parsed without a symbol table
I'm certainly no expert on these matters, but I thought a symbol table was a basic construct common to…

Dinah
- 52,922
- 30
- 133
- 149
13
votes
3 answers
Can a running C program access its own symbol table?
I have a linux C program that handles request sent to a TCP socket (bound to a particular port). I want to be able to query the internal state of the C program via a request to that port, but I dont want to hard code what global variables can be…

JimKleck
- 407
- 4
- 13
8
votes
2 answers
Accessing ELF symbol table in C
I'm writing a program to mimic elfdump -ecps
It currently prints out the elf header, program headers, and section headers correctly, but I'm stuck on the last few parts of the symbol table.
the desired output is in the format of:
Symbol Table…

Alex
- 1,042
- 3
- 13
- 32
6
votes
2 answers
Accessing active symbol table in Common Lisp
I have heard that the active symbol table is accessible within the Common Lisp runtime. Have I misunderstood?

Eli Schneider
- 4,903
- 3
- 28
- 50
6
votes
2 answers
How does a symbol table relate to static chains and scoping?
I am taking a principles of programming languages course right now but I cannot for the life of me figure this out. This is not homework just a general concept question.
In our class we have talked about static chains and displays. I think that I…

sixtyfootersdude
- 25,859
- 43
- 145
- 213
6
votes
5 answers
Is it possible to determine if a symbol is a variable or function in C?
I am implementing some limited remote debugging functionality for an application written in C running on a Linux box. The goal is to communicate with the application and lookup the value of an arbitrary variable or run an arbitrary function.
I am…

dykeag
- 554
- 3
- 11
6
votes
4 answers
What is the internal identification of a Java method?
As we know, in Java, method name is not sufficient to distinguish different methods.
I think (may be wrong), to distinguish a method, it needs the following info:
(className, methodName, methodParameters)
Further,
how to identify a method more…

JackWM
- 10,085
- 22
- 65
- 92
5
votes
1 answer
Determine load address and entry point of stripped Linux Kernel image
I have a crosscompiling toolchain for an embedded system (mipsel) on my x86 Linux. I know how to build a custom kernel (let's call the image "vmlinux") for it and how to strip that image via
objcopy -S -O binary vmlinux vmlinux.bin
For further…

kriegaex
- 63,017
- 15
- 111
- 202
5
votes
2 answers
Why does this Perl produce "Not a CODE reference?"
I need to remove a method from the Perl symbol table at runtime. I attempted to do this using undef &Square::area, which does delete the function but leaves some traces behind. Specifically, when $square->area() is called, Perl complains that it is…

KingPong
- 1,439
- 1
- 16
- 22
4
votes
1 answer
How best to override/wrap core functions like sysread when they are called in another package
I'm working on a fairly complex application written in Perl. I'm fairly experienced with the language, but I'm just stumped on this.
I'm using a module, Foo, which uses sysread and syswrite for various operations on a file-handle (a bi-directional…

Hercynium
- 929
- 9
- 18
3
votes
1 answer
Debugging c++ core files for released software
I'm trying to find a way to debug core files sent to me from released versions of my software (c++ code compiled with gcc). Ideally, I'd like to be able to deploy release builds, and keep debug builds on hand to use for debugging, so I have symbol…

ndtrek07
- 499
- 1
- 4
- 8
3
votes
2 answers
How to build symbol tables for different lexical levels?
I'm in the middle of building a compiler for a C-like language. I'm somewhat done with the lexer and parser. Right now, I'm trying to do semantic analysis and am trying to build symbol tables.
Now, according to the specifications, duplicate…

beanyblue
- 171
- 3
- 7
2
votes
3 answers
Symbol Table Design and Implementation in Ruby
I am building a lexical analyzer in Ruby and am about to start gathering and storing symbols in the symbol table. My main question about the design of the symbol and as to whether it should be static table (meaning that all of the data will be held…

Hunter McMillen
- 59,865
- 24
- 119
- 170