in reply to How can I read assemble code ?
You might want to try the B::Terse and similar modules. They will show you the bytecode generated by the perl compiler. It's not exactly assembler, but can be very useful in learning some of the fundamentals of the system, much like the native assembly language is very useful in understanding many concepts.
Trivial example:
$ perl -MO=Terse -e 'print "foo!\n"' LISTOP (0x10122248) leave [1] OP (0x10033b50) enter COP (0x100253d8) nextstate LISTOP (0x10122220) print OP (0x1002fcf0) pushmark SVOP (0x100252e0) const [2] PV (0x10010f90) "foo!\n" -e syntax OK
...roboticus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I read assemble code ?
by ysth (Canon) on Oct 12, 2007 at 23:25 UTC | |
by roboticus (Chancellor) on Oct 13, 2007 at 15:45 UTC |