01:198:211 Study Guide - Summer 2018, Comprehensive Midterm Notes - Science Fiction, Rana Sura Padakkama, Exclusive Or

163 views39 pages
01:198:211
MIDTERM EXAM
STUDY GUIDE
Fall 2018
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 39 pages and 3 million more documents.

Already have an account? Log in
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 39 pages and 3 million more documents.

Already have an account? Log in
CS211
ComputerArchitecture
 Allvariablesmustbeinitializedbeforebeingused
 Cisacompiledlanguage,Javaisaninterpretedlanguage
 AssemblyCode
 Oneinstructionperline
 Humanreadable
 Machinespecific
 MachineInstructions
 Nothumanreadable
 Bitpatterns
 Machinespecific
 OnLinux:
 gccfilename.c
 createsa.out(executable)
 gccodesiredFilenamefilename.c
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 39 pages and 3 million more documents.

Already have an account? Log in
 createsdesiredFilename.out(executable)
 gccSfilename.c
 createsfilename.s(assembly)
 gcccfilename.c
 createsfilename.o(objectfile)
 Cdatatypes
 char;onebyte
 short
int 
long 
 float
 double
 longdouble
 unsignedchar
 unsignedshort
 unsignedint
 unsignedlong
 Cvariables
 Firstcharacterisalphabeticothersarealphanumeric
 Cconstants
 int123
 long123l
 Hexadecimal0x0abcd34;09,af
 Octal037707
 Characters
 ‘a’,‘A’
 \’singlequote
 \‘’doublequote
 \abell
 \bbackspace
 \fformfeed
 \nnewline
 \ttab
 \vverticaltab
 \\backslash
 \rcarriagereturn
 Arrays
 intarray[10]
 charstringArray[]=“Hello”,initializerdeterminesarraysize
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 39 pages and 3 million more documents.

Already have an account? Log in

Document Summary

On linux: gcc filename. c creates a. out (executable) gcc o desiredfilename filename. c creates desiredfilename. out (executable) gcc s filename. c creates filename. s (assembly) gcc c filename. c. C data types creates filename. o (object file) char one byte short int long float double long double unsigned char unsigned short unsigned int unsigned long. Intel assembly push and pop instructions pushw reg16 pushw mem16 pushw imm16 pushl reg32 pushl mem32 pushl imm32 pushq reg64 pushq mem64 pushq imm64 popw reg16 popw mem16 popl reg32 popl mem32 popq reg64 popq mem64 sal shl sar shr specify type by adding l, q, b, w. Intel assembly arithmetic inc dec neg not increment decrement negate flip bits specify type by adding l, q, b, w. 64 bit imul mem, reg64 imul reg16, reg64 imul reg32, reg64 imul reg64, reg64 imul imm8, reg64 imul imm16, reg64, imul imm32, reg64 imul imm64, reg64.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers