From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John Ratcliff" To: Subject: GCC question Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <000701bf573c$ee44be00$47294b0c@amd> References: <947048956.20674.ezmlm@gcc.gnu.org> X-SW-Source: 2000-q1/msg00047.html Message-ID: <20000401000000.dkeXAN8wCMSO76hh9kKLsJ0PXiXL0mDuQZ2VBK1jrXU@z> Quick question. I'm looking to put an embedded VM inside my application. What I want is a C++ compiler that will produce an OS neutral byte code and I will have a VM to interpret it. I want the VM to be 100% ANSI complient, OS neutral C or C++ code. Java seems like the likely candidate, however the Java VM implementations I have seen are rather huge. One approach would be to have GCC produce, say 80386 code, and then write a C implementation of an 80386 emulator. Actually not a bad idea....anybody got one laying around? Is there a version of the GCC compiler that produces OS neutral VM byte code and a corresponding *small* (very small) byte code interpreter for it, written in C or C++? What I want to accomplish is to download OS neutral binaries over the internet to an application running on completely different processors. One is a Pentium but the other is a console machine that I am not at liberty to discuss. As well, there might be more processors I would support in the future. I want to be able to download and execute these binaries on any of the machines. I don't need a JIT compiler, that's overkill since this isn't performance oriented code, mostly high level game logic calling high speed native routines. It there a solution short of including the rather massive, huge, and fat, Java VM? Or, is there a thin, skinny, small Java VM implementation? Thanks, John W. Ratcliff Senior Software Engineer Verant Interactive