CS 252 Notes - Recitation PDF

Title CS 252 Notes - Recitation
Course Computer Org & Architect
Institution New Jersey Institute of Technology
Pages 2
File Size 56.8 KB
File Type PDF
Total Downloads 42
Total Views 161

Summary

Recitation...


Description

*See syllabus for lecture notes on link Ch.1 -

-

.c extension is source code file, .o is object program, and .out is executable extension for running a C file CC is a C compiler, and so is GCC cat, concatenates display for a c program, gives its compiled version 1-31 is nonprintable after that is printable Objdump -d, disassembles a C program Check compilation diagram on syllabus site Main parts of system hardware: CPU, Memory, I/O Devices (Bridge, Bus), check Reading the hello command off of site 1-2, 2-4, 3-8, 4-16, 5-32, 6-64, 7-128, 8-256, 9-512 Hexa requires 2 bytes or 8 bits Memory number which progress by # of bytes in line then binary(hex) then assembly code for a task How to get bits from Bytes? Float is 32 bits, double is 64 Buffer is kept to keep stack from overflowing

Ch.3 -

ASCII (256 chars) requires 1 byte or 8 bits 0:False 1:True, True is anything but 0 signed- 2’s complement, unsigned, binary 16k bytes needs 14 bits, k is ten, 16 requires 4 bits in binary so 10+4=14 Checked out signed and unsigned, binary For negative signed numbers equate signed and unsigned to 16 to find either or

-

W = 4 (bits) Binary = 0001 Unsigned = 5 Signed = Check phone Signed to binary In phone - 2^n (n is num of bits)

Recitation 10/1...


Similar Free PDFs