13.07.2015 Views

The PowerPC 604 RISC Microprocessor - eisber.net

The PowerPC 604 RISC Microprocessor - eisber.net

The PowerPC 604 RISC Microprocessor - eisber.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.6.1 SourceFile<strong>The</strong> "SourceFile" attribute has the following format:SourceFile_attribute (u2 attribute_name_index;u4 attribute_length;u2 sourcefile_index:at t ribute_name_indexcons tant_pool (at tr i bute_name_i ndex ) is the CONSTANT_Ut f 8 string- SourceFiattribute_lengthCode_attribute (u2 attribute_name_index;u4 attribute_length;u2 max_stack;u2 max_locals;u4 code_length;ul code(code_lengthl;u2 exception_table_length;( u2 start_pc;u2 end_pc;u2 handler_pc;u2 catch_type;) exception_table(exception_table_length);u2 attributes_count;attribute_info at.tributes(attribute_count);<strong>The</strong> length of a Sourceile_attribute must be 2 .source f ile_indexconstant_pool ( source ffrom which this class file was compiled.2.6.2 ConstantValue<strong>The</strong> "Constant Value" attribute has the following format:ConstantValue_attributeu2 attribute_name_index;u4 attribute_length;u2 constantvalue_index;attribute_name_indexis a CONSTANT_Ut f 8 string giving the source fileconstant_pool tat t r bute_name_i ndex is the CONSTANT_Ut f 8 string'ConstantValue" .attribute_length<strong>The</strong> length of a Constant Value_attribute must be 2.co<strong>net</strong>•ntvalue_indexcons tan t_pool (constant value_index I gives the constant value for this field.<strong>The</strong> constant pool entry must be of a type appropriate to the field, as shown by the followingtable:attribute_name_indexconstant_pool ( att r i bute_name_ ndex I is the CONSTANT_Ut f 8 siring -Code - .attribute_lengthThis field indicates the total length of the "Code" attribute, excluding the initial six bytesmax_stackMaximum number of entries on the operand stack that will be used during execution of thismethod. See the other chapters in this spec for more information on the operand stack.mex_loca laNumber of local variable slots used by this method. See the other chapters in this spec formore information on the local variables.code_ lengthcode<strong>The</strong> number of bytes in the virtual machine code for this method.<strong>The</strong>se are the actual bytes of the virtual machine code that implement the method. When readinto memory, if the first byte of code is aligned onto a multiple•of•four boundary the thetableswitch and tablelookup opcodc entries will be aligned; see their description formore information on alignment requirements.except ion_table_length<strong>The</strong> number of entries in the following exception table.longfloatdoubleint, short, char, byte, boolean2.6.3 Code<strong>The</strong> "Code" attribute has the following format:CONSTANT_LongCONSTANT_FloatCONSTANT_DoubleCONSTANT_Integerexception_tebleEach entry in the exception table describes one exception handler in the codestart_pc, end_pc<strong>The</strong> two fields start_pc and end_pc indicate the ranges in the code at which the exceptionhandler is active. <strong>The</strong> values of both fields arc offsets from the start of the code. start_pc isinclusive. end_pc is exclusive.handler_pcThis field indicates the starting address of the exception handler. <strong>The</strong> value of the field is anoffset from the start of the code.August 22, 1915 JAvA VutuAl MAchlne SpecIlIcAlion 21 22 tas• Viirual MAchonc Specificmion A.K.021995

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!