In order to be able to compile the KVM codebase, you must have a C compiler capable of compiling ANSI-compliant C files. Your compiler must define the basic C types as shown below in
If your J2ME configuration or profile supports floating point numbers, your compiler must support the floating point types shown below
Type
|
Description
|
|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
float
|
A 32-bit floating point value.
|
|||||||||||||
double
|
A 64-bit floating point value.
|
|||||||||||||
in Table 2.
All KVM implementations support the Java type long
.1 It is preferable that your compiler support 64-bit integers; however this is not a requirement. Porting the Java type long
is discussed in Chapter 9, "64-bit Support.”
Your compiler must have some means of indicating additional directories to be searched for “includes” of the form:
Our reference implementation has only been tested on machines with 32-bit pointers and that do not require “far” pointers of any sort. We do not know if it will run successfully on platforms with pointers of other sizes.
The codebase has been successfully compiled with the following compilers:
The only non-ANSI C feature in the KVM source code base is its use of 64-bit integer arithmetic. Refer to Chapter 9 for further information on 64-bit support.
KVM Porting Guide , CLDC 1.1 |
Copyright © 2003 Sun Microsystems, Inc. All rights reserved.