🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #457

Re: java and goto instuction! amazing!

#457
From: Tor Iver Wilhelmsen
Date: Sat, 23 Aug 2003 09:12
16 lines
2024 bytes
"Amir Pashazadeh" <pasha@abdnet.com> writes:

> I decompiled a class file (using 3 different decompilers for
> accurancy), and every time I got the same source code, there is
> something amazing in it, it has "goto" instruction! how can it be?

Because VM instruction set is not the same as Java language keywords.

> does JVM (as executor) supports "goto" instruction, but no standard
> compiler supports it yet? so a custom compiler can use it?

The VM uses "goto" to jump around in the same sense x86 uses "jmp".
You need to have some sort of jumping instruction.

The "gotos" come from java-the-language loops (for, while) and sundry
others (break, continue).
Technical Details
Message-ID: <uoeygd9fq.fsf@broadpark.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!npeer.de.kpn-eurorings.net!newsfeed.freenet.de!nntp.gblx.net!news.broadpark.no
References: <bi77c4$5ja9n$1@ID-170682.news.uni-berlin.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb9b,e1650d725c17806f
X-Google-Attributes: gid10bb9b,public
X-Google-Thread: 10a146,e1650d725c17806f
X-Google-Attributes: gid10a146,public
X-Google-Thread: 1089d0,e1650d725c17806f
X-Google-Attributes: gid1089d0,public
X-Google-Thread: f74b3,e1650d725c17806f
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2003-08-23 01:56:25 PST
Sender: Tor Iver Wilhelmsen@TIWILHEL
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.machine,comp.lang.java.programmer
Subject: Re: java and goto instuction! amazing!
References: <bi77c4$5ja9n$1@ID-170682.news.uni-berlin.de>
From: Tor Iver Wilhelmsen <tor.iver.wilhelmsen@broadpark.no>
Date: 23 Aug 2003 11:12:25 +0200
Message-ID: <uoeygd9fq.fsf@broadpark.no>
Lines: 16
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 154.80-202-75.nextgentel.com
X-Original-NNTP-Posting-Host: 154.80-202-75.nextgentel.com
X-Trace: news.broadpark.no 1061629105 154.80-202-75.nextgentel.com (23 Aug 2003 10:58:25 +0200)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!npeer.de.kpn-eurorings.net!newsfeed.freenet.de!nntp.gblx.net!news.broadpark.no