Questions tagged [symbol-tables]
24 questions
2
votes
3 answers
Is a symbol table in Ruby any different from a symbol table in other languages
The wikipedia entry on Symbol tables is a good reference:
http://en.wikipedia.org/wiki/Symbol_table
But as I try to understand symbols in Ruby and how they are represented in the Array of Symbols (returned by the Symbol.all_symbols method),
I'm…

Ellis
- 133
- 2
- 7
2
votes
3 answers
Perl: How to iterate through symbol table to find all loaded subclasses of Foo::Bar?
I have a module which is defining exceptions for the package of which it is a part. The exceptions are being declared with Exception::Class::Nested.
For purposes of discussion, let's say that this module is named Foo::Bar::Exception, and that all…

RoUS
- 1,888
- 2
- 14
- 29
2
votes
0 answers
Using Stacks for Symbol Tables or not
I'm working on creating a compiler and have come across some text that suggests two different ways of implementing symbol tables. With one, there is a symbol table for each level of nesting which is stored on a stack. With the second option there…

davelupt
- 1,845
- 4
- 21
- 32
1
vote
1 answer
SymtabAPI doesn't implicity change binary
I'm using the DyninstAPI (namely, the SymtabAPI component) to rewrite the symbol tables in binaries. I'm using the following methods to do so:
data_region->setPtrToRawData((void*) new_raw, data_region->getRegionSize())
The method returns…

sholsapp
- 15,542
- 10
- 50
- 67
1
vote
1 answer
What are the steps I need to do to complete this programming assignment?
I'm having a hard time understanding what I'm supposed to do. The only thing I've figured out is I need to use yacc on the cminus.y file. I'm totally confused about everything after that. Can someone explain this to me differently so that I can…

neuromancer
- 53,769
- 78
- 166
- 223
0
votes
1 answer
Is it true that binaries generated by visual studio don't have any symbols?
All output the same:
SYMBOL TABLE:
no symbols
This is what I find after several experiment with objdump,is this true?
If that's the case,I want to give it a little further: is it true all binaries under windows don't have symbols?

compile-fan
- 16,885
- 22
- 59
- 73
0
votes
1 answer
GCC symbol table for local variables on stack
Of course, symbol and type information of each variable defined in a C/C++ program is available, otherwise the debuggers could not show them. But how to access this information?
A lot info about the elf is available, but that is about linking an…

Jan Boonen
- 95
- 7
-2
votes
1 answer
Reference from type table to symbol table
We all know that there is always a reference from symbol table to type table but recerse case can also happen. Means can type table reference back to symbol table? If yes, please provide example.

neel
- 8,399
- 7
- 36
- 50
-4
votes
3 answers
How to create a symbol table?
Can I use malloc to add symbol table entries? How do I traverse the table to check if something is already there?

neuromancer
- 53,769
- 78
- 166
- 223