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

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

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

by Naftoli Gugenheim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sure, double-click on the class file in the output folder from the Navigator view.
In general, it would be nice if eclipse could tell me the scala command line it generates so I could paste it in a command line and modify it, e.g. for the OP's use case, or to get around the fact that I don't seem to have enough memory to run the interpreter inside eclipse, etc.




From: Nicholas Tung <ntung@...>
Sent: Wednesday, June 03, 2009 7:39 PM
To: Miles Sabin <miles@...>
Cc: scala-tools@...
Subject: Re: [scala-tools] eclipse plugin -Xprint and java disassembly

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 Nicholas Tung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jun 3, 2009 at 17:20, Naftoli Gugenheim <naftoligug@...> wrote:
Sure, double-click on the class file in the output folder from the Navigator view.
In general, it would be nice if eclipse could tell me the scala command line it generates so I could paste it in a command line and modify it, e.g. for the OP's use case, or to get around the fact that I don't seem to have enough memory to run the interpreter inside eclipse, etc.

Yeah, I figured that out :) Thanks.
Try modifying eclipse.ini's -Xmx1024m (or, maybe, -Xmx8192m, depending on how bad your jvm is).

regards,
Nicholas

Parent Message unknown RE: [scala-tools] eclipse plugin -Xprint and java disassembly

by Naftoli Gugenheim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't know, maybe someone can help me. I have 2Gb of RAM but the JVM doesn't let me start eclipse with -Xmx > ~650Mb.


From: Nicholas Tung <ntung@...>
Sent: Wednesday, June 03, 2009 8:23 PM
To: Naftoli Gugenheim <naftoligug@...>
Cc: Miles Sabin <miles@...>; scala-tools@...
Subject: Re: [scala-tools] eclipse plugin -Xprint and java disassembly

On Wed, Jun 3, 2009 at 17:20, Naftoli Gugenheim <naftoligug@...> wrote:
Sure, double-click on the class file in the output folder from the Navigator view.
In general, it would be nice if eclipse could tell me the scala command line it generates so I could paste it in a command line and modify it, e.g. for the OP's use case, or to get around the fact that I don't seem to have enough memory to run the interpreter inside eclipse, etc.

Yeah, I figured that out :) Thanks.
Try modifying eclipse.ini's -Xmx1024m (or, maybe, -Xmx8192m, depending on how bad your jvm is).

regards,
Nicholas