Native compiler...

Do any of you know a Java compiler that would turn a java file into native mac code? ( or maybe a cheap one for PC )

of course, the compiler that comes with java is a
Meta-Compiler and a true compiler could make my app
run two or three times faster...Correct, it could. But you might also find that you would like to use a library which will not compile into machine code.
So if all you do is trival programs, they will run faster. However, non trival programs will not compile.
My suggestion is to worry about perform when it is a problem, then fix it. My guess is that you won't have a problem because most real programs spnd little CPU time running Java code and spend most time in native code or the kernel.

Similar Messages

  • Please explian what is native compilation and how to use it

    hi all.
    please explian what is native compilation and how to use it
    regards

    It's explained well in the PL/SQL User's Guide and Reference
    Compiling PL/SQL Code for Native Execution
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/12_tune.htm#48419

  • PL/SQL Native Compilation - not working!

    I'm at my wits end here.
    Oracle 10.2.0.3 under Windows Server 2003 (i know, i know...) and a whole lot of procedural PL/SQL that I think could benefit from native compilation. I've done this on Linux/unix environments a few times but never imagined it would be quite so painful under Windows.
    Ended up using Visual C++ 2003 (7.1 compiler) which compiled everything. MinGW wouldn't compile everything, lots of undefined references to _setjmp and others, but that's a different subject.
    Anyway, after two days of dealing with issues, I finally get things to compile. The .dll is created. The init parameters say we're native. The test procedure is recompiled as native, and verified in dba_plsql_object_settings. As far as I am aware, native compilation is present and working. But when I run the thing.... performance is the same. Recompile as interpreted... same. Recompile as native again... same. This is demo code here, simple loop, the kind of thing that is 10x faster on my Linux environment.
    Basically the behavior is as though native compilation just isn't working... the DLL isn't working. Funny thing is that it -was- working earlier with the same code... right up until I bounced the box. Now I am dead in the water with no log file, no trace, nothing... just a non-functional native compilation feature.
    Any ideas? Anyone else struggle with this?
    Bob

    SELECT name, value
    FROM gv$parameter
    WHERE name LIKE '%code%';
    Did you do this before you bounced the database?
    ALTER SYSTEM SET plsql_compiler_flags = 'NATIVE';
    or
    ALTER SESSION SET plsql_compiler_flags = 'NATIVE';when perhaps you should have done this:
    ALTER SYSTEM SET plsql_code_type = 'NATIVE' SCOPE=BOTH;

  • Native Compilation on EBS Database

    'm upgrading an 11i database from 9i to 10g. It is mentioned that as an option I might turn on Native Compilation. Native Compilation is helpful mostly with compute-intensive PL/SQLs, does anyone have any insights regarding the effect of Native Compilation on an EBS database?

    Hi,
    Take the question marks off the end:
    PL/SQL Native Compilation
    PL/SQL Native Compilation
    PL/SQL Native Compilation Conversion Timings
    Re: PL/SQL Native Compilation Conversion Timings
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Native compilation of Java on Oracle9i

    We are trying to use the Java native compilation tool, NCOMP, that comes with Oracle9i to improve the execution speed of our Java classes. However, for this to work you have to install a C compiler, only some of which are approved by Oracle for this purpose on a given platform. The question is which ones are approved for use with NT/2000 ! The Oracle documentation is not at all clear. The README file associated with this says that approved compilers are listed in Settings_windows_nt.properties. However this just lists settings and does not explicitly state which C compiler it's trying to use ! The settings appear to indicate that it is MS Visual C++, BUT if so which version ? Professional, Enterprise, 5.0, 6.0 ??? Is this the only approved compiler ??? No where on the entire web seems to list this info. ! Any suggestions ?

    Hi,
    A month ago I got a note from Metalink claiming that ONLY Microsoft Visual C/C++ is certified againts ORacle 9i for WindowsNT/2000.
    FYI I managed to get it working. However the NCOMP tool and it's manual are quite beta-ish and I would not recommend NCOMP easily.
    Regards,
    Martijn
    Email me if you need further info on how to set NCOMP up.

  • Native Compilation

    Has there been any further word from Oracle on the status of making Java native compilation, or at least just in time compilation, an available option inside JServer (Aurora)?
    null

    It will be in 8.1.7. For further details, see FAQ at:
    http://technet.oracle.com/products/oracle8i/htdocs/jserver_faq/index.html#_64_
    take care
    John.
    Oracle JServer Development Team

  • Native compilation and the ROUND function

    Native Compilation Advisor lists the built-in ROUND function as not supported for natively compiled stored procedures.  Is there a suggested workaround?

    oracle by oracle  wrote:
    I am trying to test performance of one package and there is only one procedure wich uses just instr and substr internal functions ( I am working with varchar2).
    I am having the folowing results: native compilation is twice worst than inetrpreted. What may be the reason?
    P.S. I did ALTER SYSTEM FLUSH SHARED_POOL;Yuo should take this into account that the Native compilation is not supposed to make the code always go faster. If I remember correctly, the maximum benefit that Oracle benchmarked for it was about 30% only and taht too, if the code has lots of computational code rather than queries. If your package contains lots of this kind of code. than may be the Native compilation may be faster than the other but it doesn't come with any guarantee like this.
    Have a read about it from here,
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2278
    HTH
    Aman....

  • Native Compiled PL/SQL - Missing ORAPLS9.LIB (9i Release 2)

    In configuring the Natively Compiled PL/SQL feature of Oracle 9i, the library file ORAPLS9.LIB file can't be found. I tried generating it with:
    LIB /DEF:ORAPLS9.DLL
    but got the following warnings which didn't quite look right, and the resultant orapls9.lib file is rather small and doesn't work (unresolved externals).
    Is the ORAPLS9.LIB file supposed to be installed with 9i Release 2 for Windows 2000, or am I generating it incorrectly?
    BTW, the snpc_makefile.mk file is installed with 9i Release 2 for Windows, but not with 9i Release 1 for Windows.
    Thanks,
    Kevin Runner
    [email protected]
    Runner Technologies, Inc.
    561-395-9322
    OUTPUT
    E:\oracle\ora92\bin>lib /def:orapls9.dll
    Microsoft (R) Library Manager Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
    LIB : warning LNK4068: /MACHINE not specified; defaulting to IX86
    orapls9.dll : warning LNK4017: MZI statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: $ statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: &&`j statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: -? statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: &E► statement not supported for the target platform; ignored
    orapls9.dll : warning LNK4017: -jF◄oC♦♥-^kC♦[os]+IIIIIIIIIIIUo8b8↑oM6SVoG7 Wu♣o~Hd6weI statement not supported for the target platfo
    rm; ignored
    orapls9.dll : warning LNK4017: jK◄[]IIIIIIIIUo8So]♀VWoC♦o‼o+-?♥t statement not supported for the target platform; ignored
    Creating library orapls9.lib and object orapls9.exp

    Have you managed to resolve this problem?
    I'm having exactly the same experience (it's very frustrating, as I'm trying to run a benchmark at the moment).
    Hope to hear.
    Regards,
    T.
    Message was edited by:
    terenceo

  • Newer version of the program of native compilation NCOMP

    Hi,
    I tried to use the ncomp program to make native compilation of a jar file in an Oracle 8.1.7 Database on Unix platform with jdk 1.2.2.
    It returns an error :
    Set the JAVA_HOME to the location of the jdk 1.1.x.
    It seems the version of ncomp I have is unable to work with our jdk 1.2.2
    Where could I find a newer version of ncomp which work with jdk 1.1.2 ?
    Thanks in advance
    Bye
    [email protected]
    null

    see your duplicate posting on metalink.

  • Does native compiling improve application performance ?

    Hi,
    I've got familiar with Excelsior Native Compiler since a week ago. They claim on their website that compiling Java classes directly to native code (machine code) will improve the performance of the application. However, JAlbum (http://jalbum.net) says that its JAR files of the application run "basically at the same speed" compared to the native compiled one for windows.
    Does really compiling Java classes to native code improve performance? I'm not talking about the startup speed, but the whole application performance.
    Thanks...

    Youve really been spreading that article aroundthis
    morning, George, lol.
    It was actually a really good read this morning.
    Thanks for posting it.I know! just realized that's about the 3rd or 4th
    time I've posted it today. just a coincidence, thoughcan't promote that book enough though. Should be required reading (just like Effective Java).

  • Will native compiling improve performance?

    Hi,
    I've got familiar with Excelsior Native Compiler since a week ago. They claim on their website that compiling Java classes to native code (machine code) will improve the performance of the application. However, JAlbum (http://jalbum.net) says that its JAR files of the application run "basically at the same speed" compared to the native compiled one for windows.
    Will really compiling Java classes to native code improve performance? I'm not talking about the startup speed, I mean the whole application performance.
    Thanks...

    depends on what the app is doing
    many things in java run as fast as native code, especially if you're using a later version of java
    i guess there's one way to find out :-)

  • Profiling the shared libraries w/ native compilation

    Sorry for cross posting, I was told this forum is more appropriate:
    Status quo
    Using Oracle 10 native compilation works very well. However I would like to gain additional speed using profile-based optimization:
    In general it is a three-step process:
    1. Instrumentation: Compile the program to prepare it for profile
    collection.
    cc Oprofile=collect O2 -c sample.c
    cc -o sample.exe Oprofile=collect O2 sample.o
    2. Data collection: Run the program with representative input(s) to
    collect statistics.
    sample.exe < input.file1
    sample.exe < input.file2
    3. Optimization: Recompile to optimize based on profile data.
    cc Oprofile=use O2 -c sample.c
    cc -o sample.exe Oprofile=use O2 sample.o
    As I have only shared libraries but no executables I have to define SHLIB_FLOW_DATA:
    To profile shared libraries, you must set the environment variable SHLIB_FLOW_DATA to the file that receives profile data. Unlike FLOW_DATA, SHLIB_FLOW_DATA has no default output file. If SHLIB_FLOW_DATA is not set, profile data is not collected. This allows you to activate or suspend the profiling of instrumented shared libraries.
    Note that you could set SHLIB_FLOW_DATA to flow.data which is the same file as the default setting for FLOW_DATA. But, again, profile data will not be collected from shared libraries unless you explicitly set SHLIB_FLOW_DATA to some output file.
    Question How and where can I set this variable for native compilation?
    The problem is: whatever I tried in step 3. +Oprofile=use it always complains it can not find the profile statistics and does not compile.
    Any help is appreciated very much!
    Best regards!

    This forum is for installation issues, I guess you get better help here:
    Oracle Call Interface (OCI)
    Werner

  • Native Compilation of Apex code

    Has anyone tried natively compiling all of the Apex packages, procedures and functions?
    For example, to natively compile WWV_FLOW (with DBA privileges):
    <ul>
    <li>ALTER SESSION SET PLSQL_CODE_TYPE='NATIVE' ;</li>
    <li>ALTER PACKAGE FLOWS_030100.WWW_FLOW COMPILE ;</li>
    </ul>
    We've recently done just this on a test installation (Apex 3.1, Oracle 10g) and have found that Apex runs significantly faster. Before we consider implementing in production, I was wondering if anyone has also tried this and whether they came across any problems?
    Kevan
    Edited by: KGelling2 on Oct 30, 2008 2:24 PM

    Hello,
    I've only ever come across one other person who has mentioned doing that, he mentioned that he got performance improvements too although didn't qualify them. What sort of improvements are you seeing?
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • How much can a native compiler improve performance of a java application?

    Hello,
    we have a customer with low-end machines who complains very much about the
    starting time of an application of us. I dont't know the exact configuration
    of the clients but i think the bad perfrmance is because the client has too
    few memory and has to swap when the jvm starts.
    Could a native compiler like Excelsior JET be a solution or would the
    imporvement be only marginal?
    Anyone who has experience in this topic?
    Thank you in advance!

    Could a native compiler like Excelsior JET be a solution or would the
    imporvement be only marginal?Excelsior JET only packages up the class files and a JRE into a big blob so that it looks like a single executable. It doesn't actually generate native code for your classes.
    There are some limited pure-native compilers (e.g. GCJ - the GNU compiler for Java). Because you also need native-compiled libraries, and those are quite incomplete, only certain basic programs can be compiled down to native form without some major tweaking today.
    As to whether it'll improve your performance or not: if your program is computationally intensive (does lots of floating-point math, or other CPU-intensive algorithms), it may improve. If it's I/O, network or database bound, you'll see very little improvement, if any. If it's graphics-bound, you may see some improvement, though the native Swing support with GCJ is limited at this time.
    Even with long computationally-intensive programs, you may or may not see an improvement. If you use the server VM (java -server ...), then it does similar things behind your back (optimizing compiles), so that eventually your program speeds up a fair amount (though not to pure-native speeds).

  • Oracle 10g Native Compilation

    Hi,
    I would like to set one of my schemas to work with oracle native compilation.
    Oracle note : 43208.1 list the certified compilter for each O.S
    I am using hp-ux b11.23 itanuim , and would like to know which ANSI C PreCompilers are installed in my machine.
    Can one help with the command to find this detail ?
    Thanks

    You may need to contact your Unix Sysadmins to determine this. You have not stated which version of the database you are using - for 10g, requirements are documented at http://download.oracle.com/docs/cd/B19306_01/install.102/b25293/pre_install.htm#sthref111
    HTH
    Srini

  • PLS-00923: native compilation failed: make:spdtexmk:

    Hello,
    I am using Oracle 92 on Windows Platform.
    I am trying to change Interpreter to NATIVE mode.
    I changed parameters as needed. Below are the parameters I have after change.
    SQL> show parameter plsql_compiler_flags
    NAME TYPE VALUE
    plsql_compiler_flags string NATIVE
    SQL> show parameter native
    NAME TYPE VALUE
    plsql_native_c_compiler string D:\Borland\BCC55\Bin\BCC32.EXE
    plsql_native_library_dir string D:\oracle\ora92\plsql\Lib
    plsql_native_library_subdir_count integer 500
    plsql_native_linker string D:\Borland\BCC55\Bin\ilink32.exe
    plsql_native_make_file_name string D:\oracle\ora92\plsql\spnc_makefile.mk
    plsql_native_make_utility string make
    I am using Borland C.
    I changed a bit in mk file. But when I compile a simpe SP, I am getting PLS-00923: native compilation failed: make:spdtexmk: error.
    I guess it could be compile error, So is there any one has a sample make file for borland C on windows platform!! That might helps me!!!

    Hi,
    i tried everythind to get to runs this under windows 2000
    but nothing worked,
    the question is, if it's supported
    doese anybody knoe here?
    With linux it worked in 5 minutes of configuration;
    The advantage is that always a c compiler is on board
    Carl

Maybe you are looking for

  • Refurbing / Upgrading Nano

    Hi guys. I've got Nano 2Gb and as many people got it quickly scratched up. I'm wondering if it is possible to send it back to Apple for an upgrade to 4Gb or to at least replace the front panel of the Nano for a new one. I would appreciate any informa

  • How do i select nonadjacent range in Microsoft Excel 2007 on Macbook?

    Hello I have 1st generation black Macbook and I am running Microsoft Excel 2007 via VMware Fusion. I am currently taking a class of excel 2007 and I would love to use my Macbook to do assignments, but I have problem selecting nonadjacent range cell,

  • Photoshop cs6 can't open undates

    mac: os x, 10.9.5 click help-updates, then the updates app Flash back

  • DRM Application Hang

    Is there any known issue regarding DRM Application Hang? we are frequently getting application hang error when all the following activities are running concurrently: -multiple active user connections. -blender/Automator running as a batch in the back

  • JAVA Vs VB

    Could you help me in finding the difference between java & VB except platform independant pls specify some real differences where java can be use and VB can not. Why Java is more powerful than VB etc ...