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 / First Aid / August 2006

Tip: Looking for answers? Try searching our database.

javac Flags

Thread view: 
dimitrik107@hotmail.com - 27 Aug 2006 23:10 GMT
I am trying to learn about java compiler and flags. I am reading books
talking about compiler and the flags. Maybe as other source, can
someone share the compiler flags that help them the most for speed?
thanks.
Andrew Thompson - 28 Aug 2006 04:25 GMT
> I am trying to learn about java compiler and flags. I am reading books
> talking about compiler and the flags. Maybe as other source, can
> someone share the compiler flags that help them the most for speed?

Most information about using compiler flags for extra
speed is obsolete.  The JRE does optimisation once the
bytecodes are in memory, and puts greatest effort into
optimising the code that is most frequently called.

For a performance increase, the developer is usually far
better off looking into the code of the application itself.

Andrew T.
dimitrik107@hotmail.com - 28 Aug 2006 14:28 GMT
> > I am trying to learn about java compiler and flags. I am reading books
> > talking about compiler and the flags. Maybe as other source, can
[quoted text clipped - 9 lines]
>
> Andrew T.

Thank you. What flags you find useful? In general not only for speed.
Andrew Thompson - 28 Aug 2006 15:14 GMT
> > > I am trying to learn about java compiler and flags.
...
> > Most information about using compiler flags for extra
> > speed is obsolete.
..
> Thank you. What flags you find useful? In general not only for speed.

The only compiler flags I regularly need to use are the
ones to do with compilation for particular Java versions.
These are also known as 'cross-compilation options'
in the docs., they are -target and -bootclasspath.

Occasionally I use the -deprecation flag to find what method
or attribute is used by code I am importing that has been
marked as deprecated, but this is usually unnecessary,
since it often comes down to a call to frame.show()
or similar, that is pretty easy to spot anyway.

Andrew T.


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.