-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.json
561 lines (560 loc) · 26.6 KB
/
data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
{
"sessions": [
{
"year": 20,
"term": 2,
"current": false,
"classes": [
{
"name": "mon11b",
"short": "m11b",
"classNum": 8993,
"duration": "Monday 11:00am - 2:00pm",
"assistant": "Dong Huang",
"assistant_short": "Dong",
"tutorials": [
{
"week": 1,
"topic": "No content!",
"complete": true,
"files": [
{
"name": "hello.c",
"description": "A placeholder file for testing"
}
]
},
{
"week": 2,
"topic": "Bitwise Operations",
"complete": true,
"files": [
{
"name": "agenda.md",
"description": "The agenda for the tutorial"
},
{
"name": "numbers.c",
"description": "Code for doing bitwise operations and changing bases in C"
},
{
"name": "sixteen_in.c",
"description": "Some thoughts for getting started on sixteen_in.c"
}
]
},
{
"week": 3,
"topic": "Floating Points (IEEE-754)",
"complete": true,
"files": [
{
"name": "negative.c",
"description": "Playing around with two's complement numbers"
},
{
"name": "six_middle_bits.c",
"description": "Extracting the six middle bits from a number"
},
{
"name": "union.c",
"description": "Differences between unions and structs"
}
]
},
{
"week": 4,
"topic": "Basic MIPS",
"complete": true,
"files": [
{
"name": "squared.c",
"description": "Square a given number in C"
},
{
"name": "squared.s",
"description": "Square a given number in MIPS"
},
{
"name": "size.c",
"description": "Tell whether a number is small, medium, or large in C"
},
{
"name": "size.s",
"description": "Tell whether a number is small, medium, or large in MIPS"
},
{
"name": "resources.txt",
"description": "Lots of URLs to various MIPS resources"
}
]
},
{
"week": 5,
"topic": "More on MIPS",
"complete": true,
"files": [
{
"name": "q1_2.pdf",
"description": "Document covering q1 and q2 in tute (and a bit of endianness in q3)"
},
{
"name": "numbers.s",
"description": "Arrays and loops in MIPS"
},
{
"name": "numbers_42.s",
"description": "More advanced arrays / looping in MIPS"
}
]
},
{
"week": 7,
"topic": "Advanced MIPS",
"complete": true,
"files": [
{
"name": "fib.c",
"description": "A simplified C program to calculate the n'th number in the fibonacci sequence."
},
{
"name": "fib.s",
"description": "A translation of fib.c to MIPS, with stackframes."
},
{
"name": "flag.c",
"description": "A C program to print a flag."
},
{
"name": "flag_1d.c",
"description": "flag.c -- 2D array changed to 1D."
},
{
"name": "flag_1d_simple.c",
"description": "flag_1d.c -- for loops simplified into if/goto."
},
{
"name": "flag.s",
"description": "flag.c translated into MIPS (using flag_1d_simple.c)."
}
]
},
{
"week": 8,
"topic": "Files in C",
"complete": true,
"files": [
{
"name": "first_line.c",
"description": "A C program to read the first line of a file."
},
{
"name": "append_line.c",
"description": "A C program to append an inputted line to a file."
},
{
"name": "fopen_to_read.txt",
"description": "Changing fopen calls to open calls."
},
{
"name": "lseek.txt",
"description": "Playing around with lseek."
}
]
},
{
"week": 9,
"topic": "Asst2 + UNIX File System + Stat",
"complete": true,
"files": []
},
{
"week": 10,
"topic": "Virtual memory + Environment variables",
"complete": true,
"files": [
{
"name": "print_diary.c",
"description": "Use the $HOME environment variable to print the contents of $HOME/.diary"
},
{
"name": "print_file_bits.c",
"description": "Print the least significant byte for files in asst2 hex format"
},
{
"name": "42.hex",
"description": "Test hex file for print_file_bits.c"
},
{
"name": "how_much_mem.c",
"description": "Printing the address of a value on the stack to see roughly how much virtual memory is available."
},
{
"name": "q4.txt",
"description": "Question 4 of the tutorial - simulating LRU page replacement by hand"
}
]
}
]
},
{
"name": "thu11b",
"short": "h11b",
"classNum": 8987,
"duration": "Thursday 11:00am - 2:00pm",
"assistant": "Grace Liu",
"assistant_short": "Grace",
"tutorials": [
{
"week": 1,
"topic": "No content!",
"complete": true,
"files": [
{
"name": "hello.c",
"description": "A placeholder file for testing"
}
]
},
{
"week": 2,
"topic": "Bitwise Operations",
"complete": true,
"files": [
{
"name": "agenda.md",
"description": "The agenda for the tutorial"
},
{
"name": "bits.c",
"description": "Looking at working with individual bits"
},
{
"name": "masks.c",
"description": "Working with bitmasks - tut question 4"
}
]
},
{
"week": 3,
"topic": "Floating Points (IEEE-754)",
"complete": true,
"files": [
{
"name": "twoscomplement.c",
"description": "Playing around with two's complement numbers"
},
{
"name": "union.c",
"description": "Differences between unions and structs"
},
{
"name": "six_middle_bits.c",
"description": "Extracting the six middle bits from a number"
}
]
},
{
"week": 4,
"topic": "Basic MIPS",
"complete": true,
"files": [
{
"name": "squared.c",
"description": "Square a given number in C"
},
{
"name": "squared.s",
"description": "Square a given number in MIPS"
},
{
"name": "big_small.c",
"description": "Tell whether a number is small, medium, or large in C"
},
{
"name": "big_small.s",
"description": "Tell whether a number is small, medium, or large in MIPS"
},
{
"name": "resources.txt",
"description": "Lots of URLs to various MIPS resources"
}
]
},
{
"week": 5,
"topic": "More on MIPS",
"complete": true,
"files": [
{
"name": "q1_3.pdf",
"description": "Document covering q1 and q3 in tute"
},
{
"name": "fib.s",
"description": "Fibonacci with stack frames in MIPS"
}
]
},
{
"week": 8,
"topic": "Files in C",
"complete": true,
"files": [
{
"name": "files.c",
"description": "A C program to read a file 4 bytes at a time (with open / read)."
},
{
"name": "first_line.c",
"description": "A C program to read the first line of a file (with fopen / fgetc)."
},
{
"name": "write_line.c",
"description": "A C program to write an inputted line to a file."
},
{
"name": "seeking_around.txt",
"description": "Playing around with lseek."
},
{
"name": "strange_print.c",
"description": "Testing printing with ASCII values."
},
{
"name": "unique_fp.c",
"description": "Testing if two fopen's give unique file descriptors."
},
{
"name": "dodgy.c",
"description": "Very dodgily finding the file descriptor inside a FILE * struct (use gcc)."
}
]
},
{
"week": 10,
"topic": "Virtual memory + Environment variables",
"complete": true,
"files": [
{
"name": "print_diary.c",
"description": "Use the $HOME environment variable to print the contents of $HOME/.diary"
},
{
"name": "print_file_bits.c",
"description": "Print the least significant byte for files in asst2 hex format"
},
{
"name": "triangle.hex",
"description": "Test hex file for print_file_bits.c"
},
{
"name": "estimate_vaddr_space.c",
"description": "Printing the address of a value on the stack to estimate how much virtual memory is available."
},
{
"name": "access_lru.txt",
"description": "Question 4 of the tutorial - simulating LRU page replacement by hand"
}
]
}
]
}
]
},
{
"year": 20,
"term": 3,
"current": true,
"classes": [
{
"name": "wed17a",
"short": "w17a",
"classNum": 8904,
"duration": "Wednesday 5:00pm - 8:00pm",
"assistant": "Brandon Nguyen",
"assistant_short": "Brandon",
"tutorials": [
{
"week": 1,
"topic": "C Revision",
"complete": true,
"files": [
{
"name": "hi.c",
"description": "Why does this program crash?"
},
{
"name": "fib.c",
"description": "Iterative vs recursive definition of fibonacci function."
}
]
},
{
"week": 2,
"topic": "Bitwise Operations",
"complete": true,
"files": [
{
"name": "schedule.c",
"description": "The week 2 tutorial schedule"
},
{
"name": "sixteen_out.c",
"description": "Getting started on sixteen_out.c"
},
{
"name": "reverse_bits.c",
"description": "The reverse bits tutorial exercise"
},
{
"name": "reverse_quads.c",
"description": "An exercise for you! Give it a go before looking at reverse_quads_soln.c"
},
{
"name": "reverse_quads_soln.c",
"description": "Sample solution for reverse_quads.c. Don't look before trying yourself!"
}
]
},
{
"week": 3,
"topic": "Floating Points (IEEE-754)",
"complete": true,
"files": [
{
"name": "six_middle_bits.c",
"description": "Extract the six middle bits from a given uint32_t"
},
{
"name": "union_size.c",
"description": "Finding out the size of strange unions in C"
},
{
"name": "union_values.c",
"description": "Finding out the values in different fields of unions in C"
}
]
},
{
"week": 4,
"topic": "Basic MIPS",
"complete": true,
"files": [
{
"name": "square.s",
"description": "MIPS program to square an input number"
},
{
"name": "small_big.s",
"description": "MIPS program to determine if a number is small/big, or medium"
}
]
},
{
"week": 5,
"topic": "Assignment 1 + More on MIPS",
"complete": true,
"files": [
{
"name": "q5.s",
"description": "MIPS solution to tutorial question 5"
}
]
},
{
"week": 6,
"topic": "!! Flexibility Week !!",
"complete": false,
"files": []
},
{
"week": 7,
"topic": "Advanced MIPS",
"complete": true,
"files": [
{
"name": "flag.c",
"description": "Simplified C to print a flag"
},
{
"name": "flag.s",
"description": "MIPS translation of flag.c"
},
{
"name": "sum4.c",
"description": "C code that adds some numbers together with functions"
},
{
"name": "sum4.s",
"description": "MIPS translation of sum4.c with calling"
},
{
"name": "s_or_t_register_flow_chart.png",
"description": "MIPS flowchart to decide whether to use a T register or an S register"
},
{
"name": "why_save_ra.webm",
"description": "Quick video on when, why, and how to save the $ra register"
}
]
},
{
"week": 8,
"topic": "Files in C",
"complete": false,
"files": [
{
"name": "first_line.c",
"description": "Reads the first line from a file"
},
{
"name": "write_line.c",
"description": "Write a given line to a specified file (WARNING - will overwrite the file you specify)"
},
{
"name": "append_line.c",
"description": "Append a given line to a specified file"
},
{
"name": "print_borts_file.c",
"description": "Print the contents of a file of borts"
}
]
},
{
"week": 9,
"topic": "Files metadata",
"complete": true,
"files": [
{
"name": "chmod_if_public_write.c",
"description": "Makes any inputted files no longer publically writeable"
},
{
"name": "fgrep.c",
"description": "Searches for text within specified files or stdin otherwise"
}
]
},
{
"week": 10,
"topic": "Virtual memory + Environment variables",
"complete": true,
"files": [
{
"name": "print_diary.c",
"description": "Prints the contents of $HOME/.diary using getenv()"
},
{
"name": "addr_space.c",
"description": "Where do different things live in a virtual address space?"
}
]
}
]
}
]
}
]
}