vmarchitecture.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 61 行

JAVA
61
字号
/*
 * $Id: VmArchitecture.java,v 1.3 2003/12/05 18:12:35 epr Exp $
 */
package org.jnode.vm;

import java.nio.ByteOrder;

import org.jnode.vm.classmgr.VmStatics;
import org.jnode.vm.compiler.NativeCodeCompiler;

/**
 * Class describing a specific system architecture.
 * 
 * @author Ewout Prangsma (epr@users.sourceforge.net)
 */
public abstract class VmArchitecture extends VmSystemObject {

	/**
	 * Gets the name of this architecture.
	 * 
	 * @return Name
	 */
	public abstract String getName();

	/**
	 * Gets the byte ordering of this architecture.
	 * @return ByteOrder
	 */
	public abstract ByteOrder getByteOrder();
	
	/**
	 * Gets the size in bytes of an object reference.
	 * 
	 * @return Reference size
	 */
	public abstract int getReferenceSize();

	/**
	 * Gets the stackreader for this architecture.
	 * 
	 * @return Stack reader
	 */
	public abstract VmStackReader getStackReader();

	/**
	 * Gets all compilers for this architecture.
	 * 
	 * @return The compilers, sorted by optimization level, from least optimizations to most
	 *         optimizations.
	 */
	public abstract NativeCodeCompiler[] getCompilers();

	/**
	 * Create a processor instance for this architecture.
	 * 
	 * @return The processor
	 */
	protected abstract VmProcessor createProcessor(int id, VmStatics statics);

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?