Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to add the Optimization parameter to javac, -O
How to add the Optimization parameter to javac, -O [message #165772] Thu, 24 June 2004 16:33 Go to next message
Eclipse UserFriend
Originally posted by: ephedrine.rogers.com

Hi,

Sorry if this is in the wrong place - I would like to know how to add
the -O argument to javac so that it compiles with Optimizations. Anyone?

Cheers.
Alex
Re: How to add the Optimization parameter to javac, -O [message #165781 is a reply to message #165772] Thu, 24 June 2004 17:54 Go to previous message
Eclipse UserFriend
This flag is obsolete for a long time and neither javac nor Eclipse
support it.

(acutally javac simply ignores it for compatibility reasons).

Most of the modern code optimizations are performed in the virtual
machine (JVM) itself.

Genady

Lex wrote:

>Hi,
>
> Sorry if this is in the wrong place - I would like to know how to add
>the -O argument to javac so that it compiles with Optimizations. Anyone?
>
>Cheers.
>Alex
>
>
>
>
Re: How to add the Optimization parameter to javac, -O [message #165789 is a reply to message #165772] Thu, 24 June 2004 16:54 Go to previous message
Eclipse UserFriend
You are using javac via an Ant buildfile?
If you are using javac from an Ant buildfile, set the optimize attribute to
"on"

If you wish to configure the Eclipse compiler (which is not javac but an
internal implementation) see Window>Preferences>Java>Compiler

HTH
Darins

"Lex" <ephedrine@rogers.com> wrote in message
news:cbfdqi$c76$1@eclipse.org...
> Hi,
>
> Sorry if this is in the wrong place - I would like to know how to add
> the -O argument to javac so that it compiles with Optimizations. Anyone?
>
> Cheers.
> Alex
>
>
Previous Topic:Definitive example of SubMenus
Next Topic:"Open type" does not show types from linked src folders with filters
Goto Forum:
  


Current Time: Fri Apr 25 01:52:30 EDT 2025

Powered by FUDForum. Page generated in 0.02343 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top