Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: lt upon C, using the exact same numeric representations and operations. Everything said in this chapter about C also holds for C++. The Java language definition, on the other hand, created a new set of standards for numeric representations and operations. Whereas the C standard is designed to allow a wide range of implementations, the Java standard is quite specific on the formats and encodings of data. We highlight the representations and operations supported by Java at several places in the chapter. 2.1 Information Storage Rather than accessing individual bits in a memory, most computers use blocks of eight bits, or bytes as the smallest addressable unit of memory. A machine-level program views memory as a very large array of 2.1. INFORMATION STORAGE Hex digit Decimal Value Binary Value Hex digit Decimal Value Binary Value 0 0 0000 8 8 1000 1 1 0001 9 9 1001 2 2 0010 A 10 1010 3 3 0011 B 11 1011 4 4 0100 C 12 1100 5 5 0101 D 13 1101 6 6 0110 E 14 1110 7 7 0111 F 15 1111 23 Figure 2.1: Hexadecimal Notation Each Hex digit encodes one of 16 values. bytes, referred to as virtual memory. Every byte of memory is identified by a un...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online