[Pharo-project] loading bytecodes into the image?

2012-01-08 Thread Philippe Marschall
Hi Ok, I'm not pretending this isn't a stupid idea, I'm just curios. Suppose I want to build something that would allow me to load compiled classes (without sources) into the VM. How would you approach something like this? What things need special care (bindings, symbols, load order, …)?

Re: [Pharo-project] loading bytecodes into the image?

2012-01-08 Thread Mariano Martinez Peck
On Sun, Jan 8, 2012 at 10:03 PM, Philippe Marschall kus...@gmx.net wrote: Hi Ok, I'm not pretending this isn't a stupid idea, I'm just curios. Suppose I want to build something that would allow me to load compiled classes (without sources) into the VM. How would you approach something like

Re: [Pharo-project] loading bytecodes into the image?

2012-01-08 Thread Lawson English
That happens anyway if you don't have the sources handy. However, the bytecode compiler is so simple that reverse engineering of the code is automatic. You just loose the local var names and everything is referred to as t1, t2, t3, etc. Instance variable names are hardwired into the