JIT / Static compiler for Linux/J2SDK 1.4

Hello friends,
Could you please suggest a static / JIT compiler to native code for Linux / J2SDK platform? If you are using one, I would appreciate any comments.
Thank you.

Ok, but if you compile a java program directly into an
executable (thats what I think he's talking about),
then its always faster than a VM that has to analyze,
etc first.mkmm... untrue....
when you want to compile into native code before runtime, then you don't know runtime variables, and you cant optimize out the ones that are for example loaded at the beginning of the program, and will never change.
but if hotspot dedects that such a case appears, that it has to run some method over and over again, just to return the same value all the time, then it may just substitute that method with the returned value....
or something like that.... (havent coded any hotspot engine yet, so woun't know for sure ;)

Similar Messages

  • Run C program compiled for Linux on Mac x11?

    Hi,
    Is it possible to run a c-code program compiled for Linux on x11? If this is not possible, is there a way to have a linux platform runninn os 10.6.8 so I can use these programs?
    I knew little about Linux or X11, so I don't know if it is possible or how to recompile the program for x11.
    Thanks!

    Linux compile code will not run on Mac OS X, and even if you violated the Mac OS X license to run Mac OS X in virtual machine on top of Linux, the Mac environment would still not run the Linux program.  The Linux program needs to run on Linux.
    If your Linux program is X11 based, then it is possible to run the program on Linux and have the output displayed on your Mac.   Start an Applications -> Utilities -> Terminal session, and run the command
    ssh -Y [email protected]
    LinuxPrompt> run_your_Linux_program
    The ssh -Y will establish an X11 DISPLAY tunnel between your Mac and the Linux system.  When you run an X11 based app on the Linux system via this ssh session, the X11 display output will be sent back to the Mac.
    NOTE:  Many Open Source programs have Mac OS X ports.  Sometimes there are actual Mac OS X binaries, and sometimes you have to build them yourself.  There are also services that will do the heavy lifting of installing a ported Open Source app, such as MacPorts.org and FinkProject.org

  • Optimizer bug in C compiler for Linux

    Save the following as bug.c:
    Bug report against Sun C for Linux:
    $ suncc -V
    cc: Sun C 5.9 Linux_i386 Build27_2 2006/08/02
    usage: cc [ options] files.  Use 'cc -flags' for details
    $ cat /etc/SuSE-release
    SuSE Linux 9.3 (x86-64)
    VERSION = 9.3
    $ uname -r
    2.6.11.4-21.8-smp
    Compiled w/ -xO2 or lower, this program runs to completion:
    $ suncc -xO2 bug.c -o bug -lpthread && ./bug
    Hello from thread 0
    Hello from thread 1
    Hello from thread 2
    Hello from thread 3
    DONE.
    However, when compiled w/ -xO3 (or higher) this program hangs:
    $ suncc -xO3 bug.c -o bug -lpthread && ./bug
    Hello from thread 0
    Hello from thread 1
    Hello from thread 2
    Hello from thread 3
    ...hung here...
    ^C
    Changing "#if 0" to "#if 1" changes a "while (cond) {body;}" to a
    "do {body;} while(cond)", and is sufficient to work around the
    problem in this case.
    #include <stdio.h>
    #include <stdlib.h>
    #include <inttypes.h>
    #include <pthread.h>
    static unsigned int numthreads = 4;
        static void test_pthread_barrier(void) {
          static pthread_cond_t barrier_cond[2] =
            { PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER };
          static pthread_mutex_t barrier_mutex[2] =
            { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER };
          static volatile unsigned int barrier_count = 0;
          static volatile int phase = 0;
          const int myphase = phase;
          pthread_mutex_lock(&barrier_mutex[phase]);
          barrier_count++;
          if (barrier_count < numthreads) {
    #if 0
            do {
              pthread_cond_wait(&barrier_cond[myphase], &barrier_mutex[myphase]);
            } while (myphase == phase);
    #else
            while (myphase == phase) {
              pthread_cond_wait(&barrier_cond[myphase], &barrier_mutex[myphase]);
    #endif
          } else {
            barrier_count = 0;
            phase = !phase;
            pthread_cond_broadcast(&barrier_cond[!phase]);
          pthread_mutex_unlock(&barrier_mutex[!phase]);
    static void * thread_main(void * arg) {
      printf("Hello from thread %d\n", (int)(uintptr_t)arg);
      test_pthread_barrier();
      return NULL;
    int main(void) {
        int i;
        pthread_t *threadid = (pthread_t *)malloc(sizeof(pthread_t)*numthreads);
        for(i=0;i<numthreads;i++) {
          void *threadarg;
          pthread_attr_t attr;
          pthread_attr_init(&attr);
          pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM); /* ignore failures */
          pthread_create(&threadid, &attr, &thread_main, (void *)(uintptr_t)i);
    pthread_attr_destroy(&attr);
    for(i=0;i<numthreads;i++) {
    void *retval = NULL;
    pthread_join(threadid[i], &retval);
    free(threadid);
    printf("DONE.\n");
    return 0;

    You can refer to this bug as 6499729.
    The bug status will soon be visible on bugs.sun.com

  • PL/I compiler for Linux?

    Hello there, I have lately found a book about PL/I that aroused my interest in that language. Now I want to know if there exists a free (as in "costs no money", but free as in "open source" would be even better, of course) compiler for that old language. I have found a project on sourceforge, but it was abandoned at version 0.0.15 at 2007 or so. On another page, I saw a compiler that was advertised for SuSe and Red Hat, but that didn't seem to be free of charge
    Does anyone here know a resource for such a compiler?

    If you look at the CVS changelog, there was activity last year including an update to work with GCC 4.4. Create a PKGBUILD to checkout the CVS tree and see if it works.

  • Gcc compile for linux from terminal

    Hi all,
    I've usually done my compiling in OSX via terminal with gcc, using a few flags, but as of recently, wanted to build for some linux systems as well and was wondering if it was possible to compile on the mac side using specific flags instead of having to compile them on the linux boxes themselves? What I'm using now:
    gcc -arch ${arch} -mmacosx-version-min=10.4 file.c -o file
    I have a mac on our network specifically for building, recompiling and distribution which is why I'd like to keep it there instead of having to do it on each individual machine...

    You want to cross-compile on the Mac and target Linux? Certainly this is possible, but harder than it looks, and it looks pretty hard. Personally, I would suggest building it on a Linux VM running on the Mac. You'll get the best of both worlds that way.

  • Sun compiler for linux

    when i was installing compiler everythings have gone well i haven't got any problem my platform is intel 865 chipset

    Hi Alexey,
    The actual code i want to compile is proprietary so will not be able to post it. Anyway the compiler gives the same error on a simple mpi file as below so i dont think it has anything to do with the code i am trying to compile. And as i mentioned earlier the code does compile and run without the -xipo flag.
    ------example.f ------
    program mpi_test
    include 'mpif.h'
    integer ierr
    integer rc
    integer myID
    integer nproc
    integer nslaves
    call mpi_init( ierr )
    call mpi_comm_rank( MPI_COMM_WORLD, myID, ierr )
    call mpi_comm_size( MPI_COMM_WORLD, nProc, ierr )
    nSlaves = nProc-1
    write(*,*) 'I am proc #',myID
    call mpi_finalize(rc)
    end
    Thanks
    Winston

  • Why is skype for web not being developed for linux?

    i tried to get the skype extention for chrome on linux. and well i got that icon error. so i tried to work arround the error and was seccessful in getting the plugin installed. but the actual skype for web aplication doesn't seem to want to utilize the skype calling extention even after using a user agent to trick the skype for web page into thinking i am using chrome on windows. i end up hacing to install the windows plugin. and the skype for web page doesn't like to use the Skype Calling extention.but anyway  iwanted to know why the skype for web plugin is not being compiled for linux. i see no reason why someone couldn't just compile the plugin for linux with the already existing code. i would be willing to volunteer to compile the plugin and release the plugin for linux.

    Hi and welcome to the Skype Community,
    Skype for Web is currently a Beta version with support for calling via the plugin being limited to popular browsers on Windows and Mac. Unfortunately supporting calling on Chrome for Linux requires a bit more than simply recompiling the plugin. Going forward we are looking to add more features and allow calling on even more platforms, potentially even Linux.

  • CORBA - idltojava for Linux for jdk1.2.2

    Hello !
    I need the idltojava compiler for linux Operating system for Jdk 1.2.2 (so the idlj for jdk1.3 will not do). I looked on the site here but only windows and solaris versions are available.Can anyone guide me to some download site where I can get this ?
    Thanks in advance,
    Lakshmi Nayak

    Hello !
    I looked at the site but could not find the idltojava for java versions before 1.3.
    However I have found out from another source that idltojava compiler for linux for java version 1.2 is not available.
    But Thanks a lot Frank-Michael for guiding me to such a good site(http://blackdown.org) for java-linux ! :-)
    Thanks,
    Lakshmi Nayak

  • Does Jit for Solaris works for linux?

    Can i used JIT for Solaris under Linux platform? what are the implications and any problems that i can encounter. I need to know abt what kinda problems that could be encountered since the project will be used as a prototype for the main project.
    OR is there a JIT for linux supported by SUN? i think i saw a link somewhere in java.sun.com that gave me the option of downloading JIT for linux but it said "Sun doesn't support it" beside it, so i didnt download it
    thanks

    we are using Linux 7.2 and Java 1.4OK, then you're using the HotSpot virtual machine.
    How do I explain this as simply as possible? HotSpot has a "built-in JIT", in that it does not interpret the byte codes directly, but does so after translating snippets of byte code into native code. I.e. the VM IS the JIT.
    There's no separate JIT you can use to "speed up HotSpot". And anyway, a JIT doesn't "compile" the code in any permanent way - it has to do the translation statically each time the program is loaded.
    However, you do have a point - there have been several reports of a slowdown between JDK 1.3.1 and 1.4.0. 1.4.1 hasn't improved much. I'm waiting for 1.4.2.
    Things you can try in the meantime:
    * Download the full JDK, and use the "java -server" option to use the server VM. If you're running a server-type application (i.e. not a GUI), this might improve things.
    * Profile the application using any of the available Java profiling tools (do a Google search - there are free and commercial profilers).
    There are a thousand possible reasons why your application is slow - anything from excessive memory allocation to excessive locking to poorly chosen algorithms. A profiler may help you narrow things down a little.

  • Rfc static libraries for Unicode (Linux)

    Hi all!
    Does anybody know if it is possible to use RFC static libraries for Unicode on Linux?
    I can compile and link my application, but when I am running it, I get message:  "undefined symbol: strtolU16". librfcu.a  is the only static library, which is provided in RFCSDK. Do I need to link my application with any other library?
    Everything works fine with non-unicode static library.
    Thank you in advance,
    Elena

    Oracle does not provide any static libraries for MS Windows.

  • License for cross-compilation for solaris 10 sparc on Linux x86

    I'd like to do cross-compilation for solaris 10 sparc on Linux x86 using gcc (for linux). To do that, I have to copy libraries (/lib/64) and includes (/usr/include) from a sparc machine to my linux machine.
    The compilation will be run on about (up to) 50 Linux machines (by various developers). We also have 3 solaris-10-SPARC machines.
    I wonder if Solaris license allows me to copy the includes and libs to perform compilation elsewhere.
    I also checked "OTN License Agreement for Oracle Solaris", but it looks like Oracle allows for installing "the programs" on up to 3 machines, but I need it on 50.
    Thanks for any suggestions or redirections to a proper place where I can get an answer.
    Marek

    When installing Solaris 10 01/06 on a Dell 1850 I receive an error message during the install saying "no disk found". I assume that the drive/controller is not recognized. The Dell 1850 is listed under the HCL for Solaris 10 10/06. I don't believe I can use the Solaris(TM) Device Driver for the LSI MegaRAID Adapter floppy with 1/06. I don�t have any other Solaris boxes up so I can�t build a jump start server. Any suggestions?

  • Problem to compile mxi-2 driver for linux 2.4.4

    Hello,
    I have a MXI-2 (VME/PCI) hardware and I'd like to install the appropiate
    software for my PC which runs under SuSE Linux 7.2 (kernel 2.4.4-64GB-SMP).
    I have succesfully installed NIVISA and NIVXI software (RPMs) and then
    I'm trying to compile (using make) the vxi module for linux. It does not work...
    Do you have a solution ?
    Thanks in advance.
    Remi CORNAT
    Error log from make :
    gcc -o vxi.o -DVXI_MAJOR=0 -c -O -Wall -D__KERNEL__ -DMODULE -I/lib/modules/2.4.4-64GB-SMP/build/include vxi.c
    vxi.c: In function `vxi_vma_nopage_shm':
    vxi.c:64: structure has no member named `vm_offset'
    vxi.c:65: warning: implicit declaration of function `MAP_NR'
    vxi.c: At top level:
    vxi.c:77:
    warning: excess elements in struct initializer
    vxi.c:77: warning: (near initialization for `vxi_vm_ops_shm')
    vxi.c:77: warning: excess elements in struct initializer
    vxi.c:77: warning: (near initialization for `vxi_vm_ops_shm')
    vxi.c:77: warning: excess elements in struct initializer
    vxi.c:77: warning: (near initialization for `vxi_vm_ops_shm')
    vxi.c:78: warning: excess elements in struct initializer
    vxi.c:78: warning: (near initialization for `vxi_vm_ops_shm')
    vxi.c: In function `vxi_mmap':
    vxi.c:86: structure has no member named `vm_offset'
    vxi.c:102: structure has no member named `vm_offset'
    vxi.c: At top level:
    vxi.c:114: warning: initialization from incompatible pointer type
    vxi.c:115: warning: initialization from incompatible pointer type
    vxi.c:116: warning: initialization from incompatible pointer type
    vxi.c:118: warning: initialization from incompatible pointer type
    make: *** [vxi.o] Error 1

    As of August 2001, National Instruments does not have a driver that is supported under the 2.4 kernel of Linux. The latest version of NI-VXI is supported under the 2.2 kernel for our PCI-MXI-2 and VXIpc-870 controllers.
    Trey Hamilton
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • [solved] Error Trying to Compile Video For Linux.

    I have a new TV card and I need to patch v4l to get it working. When I run the build script I get:
    Preparing to compile for kernel version 3.7.9
    File not found: /lib/modules/3.7.9-1-ARCH/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
    Usually this means that I you don't have linux-headers installed but:
    scamper2 src/media_build ‹master*› » pacman -Ss linux-headers
    core/linux-headers 3.7.9-2 [installed]
    However, /lib/modules/3.7.9-1-ARCH/ doesn't have a build directory. Any suggestions on what I am doing wrong?
    Last edited by geekinthesticks (2013-02-28 07:58:00)

    geekinthesticks wrote:
    File not found: /lib/modules/3.7.9-1-ARCH/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
    scamper2 src/media_build ‹master*› » pacman -Ss linux-headers
    core/linux-headers 3.7.9-2 [installed]

  • Fmb compiled for windows works in linux ??

    Hi,
    A customer is about to deploy a system made with forms11gR2, they only have the fmx files which ones where compiled in windows, now they want to place the fmx files in a linux server with forms11gR2, so the question is, could this generate an error ?? i mean the fmx were compiled for windows not for linux
    Regards
    Carlos

    If you have access to MyOracleSupport, refer to Note 299938.1

  • Java Compiler for MAC OS X & Linux

    Greetings:
    I could use a recommendation for a JAVA compiler.
    Any help is appreciated.
    Q1: For Mac OS X, what is a recommended Java compiler / JDK ?
    Q2: Can I program and compile a Java program with the Xcode platform? If so, how?
    (fyi: did notice there isn't a JAVA library like C++...but there probably is one out there)
    Q3: For Linux OS, what is a recommended Java compiler? (probably the same as Mac)
    If you have a website for downloading a compiler and / or Java Library for X code, toss it my way.
    Thank you for your time.
    Cheers,
    Shockwave

    The javac compiler is installed in /System/Library/Frameworks/JavaVM.framework/Commands/. On my machine it's also installed in /usr/bin/javac.
    The java libraries in /System/Library/Frameworks/JavaVM.framework/Libraries/ then there are others in /usr/lib/java/.
    I believe that you can use Xcode as an IDE for java or download Eclipse. Then again the Terminal.app (your shell), vi or emacs, and the javac command will get you going.

Maybe you are looking for