Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / April 2006

Tip: Looking for answers? Try searching our database.

C version of java assembler

Thread view: 
gmlvsk@gmail.com - 25 Apr 2006 05:59 GMT
I wrote C version of Java assembler.
It compiles same grammar as Jasmin.
Please help me to test it.
You can download linux executable here
www.andreig.com/jasm
There is also a helpfull tool (linux executable)
to disassemble java classfiles to bytecode
www.andreig.com/jfr
Thanks
Roedy Green - 25 Apr 2006 06:15 GMT
>I wrote C version of Java assembler

that seems an odd thing to do. Why did you choose C rather than
assembler?  Just familiarity? for bootstrapping to a new platform?
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Oliver Wong - 25 Apr 2006 19:22 GMT
>>I wrote C version of Java assembler
>
> that seems an odd thing to do. Why did you choose C rather than
> assembler?  Just familiarity? for bootstrapping to a new platform?

   I'm guessing the OP's program parses JASMIN files and produces class
files out of it, thus acting basically as a very simple compiler. It's
probably a pain to write parsers in pure assembler, whereas there are tools
(e.g. Yacc, Bison, etc.) to assist writing parsers in C.

   To the OP, no offense, but I don't trust you well enough to run your
binary executables. Why don't you provide the source code for your program
instead?

   - Oliver
gmlvsk@gmail.com - 25 Apr 2006 22:31 GMT
Well,
It's close source.
How can I make it trustable?
Use strace and see if it does anything wrong.
For example jad is distributed as executable, people use it.
Chris Uppal - 26 Apr 2006 10:12 GMT
> For example jad is distributed as executable, people use it.

Some reasons for trusting programs which don't come with source:

1) If enough /other/ people are using an unknown executable, then I will be
more likely to trust it.

2) If the program comes from a sufficiently reputable source, then I will be
more likely to trust it.

3) Combining the first two: if the program is likely to have come under
attention from the sort of people who routinely read IA32 machine code (OK,
perhaps they disassemble it first ;-) then I will be more likely to trust it.

4) If the program does something desirable and unique, then I'll be more likely
to trust it.

5) If I simply have no choice (e.g. elements of the OS if I'm on Windows), then
I'll be more likely to trust it.

JAD (which I do use, btw) has at least (1) and (4).  (Decompiling is a good
deal harder than disassembling.)   Your program, at least as far as I know,
does not have any of (1)...(5).  If it becomes popular then it will get (1),
but I doubt if that will happen unless there is something special (4) about it.
Perhaps it is blazingly fast (although it's difficult to imagine speed making
much difference for any real application), or perhaps it has an elegant and
flexible macro system.  Or perhaps it has some other unique advantage.
Whatever, if you want people to use it, then you'll have to tell them what
advantages it has over other assembler/disassembler packages.

(BTW, whatever the advantages you can cite, it's unlikely that I'll use it
myself -- nothing personal, and not a criticism of your program, it's just that
I prefer generate bytecodes directly (from code), rather than via an
assembler.)

   -- chris
Roedy Green - 26 Apr 2006 18:59 GMT
On Wed, 26 Apr 2006 10:12:36 +0100, "Chris Uppal"
<chris.uppal@metagnostic.REMOVE-THIS.org> wrote, quoted or indirectly
quoted someone who said :

>5) If I simply have no choice (e.g. elements of the OS if I'm on Windows), then
>I'll be more likely to trust it.

Someone writing a Trojan is more likely to do something cutesy or
maudlin that will suck in a large number of naive users.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Oliver Wong - 27 Apr 2006 16:34 GMT
> On Wed, 26 Apr 2006 10:12:36 +0100, "Chris Uppal"
> <chris.uppal@metagnostic.REMOVE-THIS.org> wrote, quoted or indirectly
[quoted text clipped - 6 lines]
> Someone writing a Trojan is more likely to do something cutesy or
> maudlin that will suck in a large number of naive users.

   You Bonsai Buddy (spl?), that purple monkey thing? My brother downloaded
it, and I told him it's spyware, and he told me he likes Bonsai Buddy, so it
was "worth it". A few months later, he called Bonsai Buddy a traitor and
backstabber and asked me to remove him.

   - Oliver
Roedy Green - 25 Apr 2006 20:26 GMT
On Tue, 25 Apr 2006 05:15:56 GMT, Roedy Green
<my_email_is_posted_on_my_website@munged.invalid> wrote, quoted or
indirectly quoted someone who said :

>that seems an odd thing to do. Why did you choose C rather than
>assembler?  Just familiarity? for bootstrapping to a new platform?

oops. I meant to ask Why did you choose C rather than Java?
Was it familiarity with the C parsers and not wanting to relearn the
Java ones?
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.