On 08.07.2009, at 20:45, Cameron Sanders wrote: > 1) What classes should I look at to learn about the byte-code > generation? >
These slides give an introduction: http://marcusdenker.de/talks/07SCGSmalltalk/11Bytecode.pdf > 2) What are good examples of code that handles/manipulates/processes > the byte-code? There are multiple parts of the system dealing with bytecode: 1) VM. This is SLANG, compiled to C, compiled to a Binary. 2) Compiler. Generates Bytecode. Here the old one is very strange (to me at least). Anthony's newcompiler is much easier to understand, This has a backend called "IR Builder" that can be used to generate bytecode easily. (Or to modify code on the level of bytecode abstraction, see http://scg.unibe.ch/research/bytesurgeon ) 3) Debugger / Simulator. This is in class ContextPart. A bytecode interpreter written in Smalltalk that the Debugger uses for stepping. > e.g. like the code used for searching for symbol > references in the byte-code, what is that called? (Is that > MethodFinder stuff?) > No. Check SystemNavigation, method #allCallsOn: Marcus -- Marcus Denker - http://marcusdenker.de PLEIAD Lab - Computer Science Department (DCC) - University of Chile _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
