Examples of VmX86Architecture


Examples of org.jnode.vm.x86.VmX86Architecture

        final String processorId = System.getProperty("cpu", "p5");
        final String dir = System.getProperty("classes.dir", ".");
        final String archName = System.getProperty("arch", "x86");

        final VmX86Architecture arch;
        if (archName.equals("x86_64")) {
            arch = new VmX86Architecture64();
        } else {
            arch = new VmX86Architecture32();
        }
        final VmSystemClassLoader cl = new VmSystemClassLoader(new java.net.URL[]{
            new File("./core/build/classes/").getCanonicalFile().toURI().toURL(),
            new File("./distr/build/classes/").getCanonicalFile().toURI().toURL(),
            new URL("jar:" + new File("./all/lib/classlib.jar").getCanonicalFile().toURI().toURL() + "!/"),
        }, arch);

        final VmImpl vm = new VmImpl("?", arch, cl.getSharedStatics(), false, cl, null);
        vm.toString();
        VmType.initializeForBootImage(cl);
        System.out.println("Architecture: " + arch.getFullName());

        //final ObjectResolver resolver = new DummyResolver();
        final X86CpuID cpuId = X86CpuID.createID(processorId);
        //NativeCodeCompiler c = cs[0];
        final NativeCodeCompiler[] cs = {
View Full Code Here

Examples of org.jnode.vm.x86.VmX86Architecture

    public static void main(String[] args) throws Exception {

        final String processorId = System.getProperty("cpu", "p5");
        final String dir = System.getProperty("classes.dir", ".");

        final VmX86Architecture arch = new VmX86Architecture32();
        final VmSystemClassLoader cl = new VmSystemClassLoader(new URL[]{new File(dir)
            .toURL()}, arch, new CompilerTest.DummyResolver());
        final IMTCompiler cmp = arch.getIMTCompiler();
        cmp.initialize(cl);
        VmType.initializeForBootImage(cl);
        final VmImpl vm = new VmImpl("?", arch, cl.getSharedStatics(), false, cl, null);
        vm.toString();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.