[scala-tools] eclipse plugin -Xprint and java disassembly

View: New views
4 Messages — Rating Filter:   Alert me  

[scala-tools] eclipse plugin -Xprint and java disassembly

by Nicholas Tung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

    Is there a way to view the output of scalac's -Xprint (particularly the lowest, -Xprint:jvm) and java disassembly (e.g. through javap or Dava) using the eclipse plugin? It would be convenient to use the settings / classpath of the project (versus invoking the tools on the command line).

Thanks very much,
Nicholas

Re: [scala-tools] eclipse plugin -Xprint and java disassembly

by Miles Sabin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 4, 2009 at 12:07 AM, Nicholas Tung <ntung@...> wrote:
>     Is there a way to view the output of scalac's -Xprint (particularly the
> lowest, -Xprint:jvm)

Not at the moment, no.

> and java disassembly (e.g. through javap or Dava) using
> the eclipse plugin?

Doesn't Eclipse's built in classfile viewer do this job for you?
Failing that, I'm pretty sure there are several very capable bytecode
disassembler plugins around.

Cheers,


Miles

--
Miles Sabin
tel: +44 (0)7813 944 528
skype:  milessabin
http://twitter.com/milessabin

Re: [scala-tools] eclipse plugin -Xprint and java disassembly

by Nicholas Tung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jun 3, 2009 at 16:35, Miles Sabin <miles@...> wrote:
On Thu, Jun 4, 2009 at 12:07 AM, Nicholas Tung <ntung@...> wrote:
>     Is there a way to view the output of scalac's -Xprint (particularly the
> lowest, -Xprint:jvm)

Not at the moment, no.

Sure. It might be a nice feature in the future.
 

> and java disassembly (e.g. through javap or Dava) using
> the eclipse plugin?

Doesn't Eclipse's built in classfile viewer do this job for you?
Failing that, I'm pretty sure there are several very capable bytecode
disassembler plugins around.

That's great, thanks! I'm pretty new to Eclipse, sorry.

Nicholas

Re: [scala-tools] eclipse plugin -Xprint and java disassembly

by David Chase-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I can confirm that the combination of:

Eclipse 3.4.2
Scala 2.7.4
ASM Framework 2.2.1      http://download.forge.objectweb.org/eclipse-update/
Bytecode Outline 2.2.8   http://andrei.gmxhome.de/eclipse/

works for this purpose.  I haven't tried 2.7.5 yet, I just noticed  
that it's out there.

On 2009-06-03, at 7:39 PM, Nicholas Tung wrote:

> On Wed, Jun 3, 2009 at 16:35, Miles Sabin <miles@...>  
> wrote:
> On Thu, Jun 4, 2009 at 12:07 AM, Nicholas Tung <ntung@...>  
> wrote:
> >     Is there a way to view the output of scalac's -Xprint  
> (particularly the
> > lowest, -Xprint:jvm)
>
> Not at the moment, no.
>
> Sure. It might be a nice feature in the future.
>
>
> > and java disassembly (e.g. through javap or Dava) using
> > the eclipse plugin?
>
> Doesn't Eclipse's built in classfile viewer do this job for you?
> Failing that, I'm pretty sure there are several very capable bytecode
> disassembler plugins around.
>
> That's great, thanks! I'm pretty new to Eclipse, sorry.
>
> Nicholas