java assembler pjb  
Author Message
ppaatt





PostPosted: 2003-11-2 5:43:00 Top

java-programmer, java assembler pjb [[[ Google probably will join this post to the 2003-01-03 thread of
the same name, your newsreader may be less helpful. ]]]

Kindly offline I was asked to confirm ...

Yes, instructions appear at:
http://groups.google.com/groups?threadm=2695edf1.0301031438.6fb5cd8%40posting.google.com

Yes I can fetch 48,910 bytes from:
http://members.aol.com/plforth/pjb.zip

Yes that .zip contains the compressed folder pjb/.

pjb/README.txt tells us nothing new except that I am
mailto:email***@***.com and we can click thru to pjb/cshlog.txt. In
turn, pjb/cshlog.txt suggests ..

Three steps:

--- 1) a procedure to produce the disassembly
HelloWorldAppJavaAssembler.java:

cd pjb
javac HelloWorldApp.java pjb/JavaAssembler.java
cp -ip HelloWorldApp.class HelloWorldApp.bin
java pjb.JavaAssembler HelloWorldApp

--- 2) A procedure to reassemble the disassembly:

javac HelloWorldAppJavaAssembler.java
rm HelloWorldApp.class
java HelloWorldAppJavaAssembler

--- 3) A comparison to show we have reassembled precisely the same
.class file:

diff HelloWorldApp.bin HelloWorldApp.class

Pat LaVarre

P.S. I ran this example in Mac OS X, with ships with javac installed,
even if you do not install the Developer's Disk. Linux with Java
should work identically. Windows with Java syntax for these is as
shown except `copy /-y` and `del` and `fc /b` for what here appears as
`cp -ip` and `rm` and `diff`.