Professional Documents
Culture Documents
Computer Organization
Week 1
Discussion 1B
• TA: Ariyam Das
• Email: ariyam@g.ucla.edu
• Office Hours: Wednesday (3PM-5PM)
at BH 3551 (ScAI Lab)
• Slides/notes used in the discussion will
be posted on CCLE after class.
Today’s Agenda
• Course Introduction
• Linux Overview
• C (aka unlearning C++)
• Binary representation
• Binary arithmetic
Grading
• Midterm (20%)
• Final (30%)
– Exams are open book/open notes
• 4 Labs (3*10% + 15% = 45%)
• 5 Homework (5*1% = 5%)
*(0(C
***!( !"!
!!( '0
)0.*B
D(
(
0*
*
$
-
*
*!%
%*"E
*
*
!
%B
*
D
F
*
;
*
!
&
0 ** !'!
!
!
6
"!%!C
&
0 ' "!) /%!
/
.
(C
&
0
( !!(0
C
&
0
6
"(
C
&
0 *** !'!
-
%
!!(
*
0**!'!
!
'
!
0 !'!
A!(
$
*
0*(*
*
0 $
"
"
(
%0*0!!*
*
0*
!6
$
8
*
!"
/
77$
!/(
**!(
*G!
0
56
'
/
%
!!(* 56
' $
=
0!!"
*
56 '
*
!!
!!(
"56*'($
56!
'$56!%$
8
*
;
0
,=
)*>>000$
* $ $
$>?*>(
>
0!
$*!.&
!
&%
*!!
!*
6"
' $
;
-
56
&
*
"
!($
!)%
-
!
H!H
!.
8
*
;
0
B*
D/
I J#!6 '$$
!$
;
-
56
*I J#!6 '$$
!$
%(
*& (!
*
!
%
/(
*
!! (*'
$* 0
*
%%
3@K+2
! &!!
$
8 56
56*
(> !*(
0!!"! "
*
!0!!
$
* ( %
56*(
4!!"
! %
-$
* 4!
**/"0*4
*(
4!!"
!
%0
*!
!*
8 %!56
56
%
I
JL=MI J
)L/=/M
!%!.
;!
%(>
%(*"*'
%*
$
8 %!56
0N 0
(
!N!
%
(
!!)B!D%!0!!
!
%
.
N
*
(
"!*)'
*"!*
(0*
*
!
*
(.
$$)'
*
(.
$$> )'
(
!!B D*
!
0** .
$)'
*
($8 0
.
8 %!56
%!$%(
4 %!
(
!'0*56)0*
*0!!*'
*'!!(./
*(
B'D
B
D$
'6$6
6$6
%(
!(0
(
%% /
*(
B
D
B
D$
6$6
6$6
Vi Cheat Sheet
• https://ryanstutorials.net/linuxtutorial/cheatsheetvi.php
Vi Cheat Sheet
• https://ryanstutorials.net/linuxtutorial/cheatsheetvi.php
Vi Cheat Sheet
• https://ryanstutorials.net/linuxtutorial/cheatsheetvi.php
Vi Cheat Sheet
• https://ryanstutorials.net/linuxtutorial/cheatsheetvi.php
Vi Cheat Sheet
• https://ryanstutorials.net/linuxtutorial/cheatsheetvi.php
8 %!56
* 56
!
$
$
)
!*%!$
6
"!%!0*%!B$
D.
$
)
!*%!$
6
"!%!
!!BD.
$
3)
!*%!0*
/
!'!3.
<
;
!"/(
4!!"BD)
".
!*
E
$
6
6
"!
$>)6
*6
"!%!
!!BD.
8
(%
!
!
*
;
0
,
!
%
($=
($
=
*
"!(
*(!
* *>>0
$>>
0!
$*
;
-
56
*
"
!($
!)%
-
!
H!H
!.
8
(%
!
!
;
0
B*
D/
I J#!6 '$$
!$
1*
!
%!!
!
0!
$
;
-
56
5
!
I%!JI J#!6 '$$
!$$
1
!
!
I J#!6 '$$
!$O*
%!H$
)
77.
)' (!%.*!!/77
6
$
*(6
%*! !(
!/
"(
0!!%*!
% /
!(*B"E
D $
% !
/"*'
%% $
)
77.
77
%
)PQOQ77.
R
2(%!/
SS4 0*
*
*"
!
B%
D!
$ !/
(
0!!*'
*
Q
%
)PQOQ77.
6!
!(
!0*%%
P
SS$
)
77.
B 6!
!(
!0*%%
D
*
% >
0$%0
)*. (
*
0
!"/00!!
!0**%0%!
($
!/
%
!
%
*
! A %% %!
Q
(
!
%
$
)
77.
%
6PQ
OO6Q
=
4!!B %D
%)B"!*D.Q
%)B:D/6.Q
%*%
*
!0*%
*
* $
)
77.
;
6!/%00
6/0
*%
!!
0
6PQ
%)B 6:D/6.Q
*0!!
B 6D
:*%
%
8
* %
%!!
%!
%
*>>000$
!!$
> %
>
> %>
<77
;!!(/*
' 6!
!(*"5=
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