1 / 11

Reading code

제 35 강 : Reading Code. Reading code. procedures. Reading Codes . . . read.c. src. #include "user.h" #include "sys.h" #include "type.h" int sys_read (pst) struct buf *pst; { char ps[MAX]; int index; while (i ... ) { ... }. sys. vm. net.

alanna
Download Presentation

Reading code

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 제35강 : Reading Code Reading code

  2. procedures

  3. Reading Codes . . . read.c src • #include "user.h" • #include "sys.h" • #include "type.h" • int sys_read (pst) • struct buf *pst; • { • char ps[MAX]; • int index; • while (i ... ) • { ... } sys vm net . . . . . sys.h inode.h user.h driver.c stream.c hd.c vm.h file.h error.h intrp.c signal.c strategy.c cdev.h bdev.h type.h read.c write.c sleep.c init.h flt.h mount hnfs.c super.c win.c obj.h text.h abs.h ftp.c telnet.c fill.c . . . . . . . .

  4. Reading Codes . . . read.c • #include "user.h" • #include "sys.h" • #include "type.h" • int sys_read (pst) --------------- who calls this? • struct buf *pst; ------- what is “buf”? • { • char ps[MAX]; • int index; • while ((index < MAX ) && (read (temp) != LEVEL) ) { • . . . . • ------------ where is read()? • what does it perform? • }

  5. src . . . . . include sys vm net Where is “readi()“, “proc” ? sys.h inode.h user.h driver.c stream.c hd.c vm.h file.h error.h intrp.c signal.c strategy.c cdev.h bdev.h type.h read.c write.c sleep.c init.h flt.h mount.h nfs.c super.c win.c obj.h text.h abs.h ftp.c telnet.c fill.c . . . . . . . . Manual or automatic search?

  6. Repeated Primitive Operations Source change compile link/ load test/ run Managing Source Reading Codes Reading Manuals Compile Modifying Codes Dedugging Each Primitive Operation ---- 1 sec or 1 min?

  7. Reading code • Back to Part (II) • regular expression • ctags • cscope • awk • … • Every repeated primitive operation  1 second!

More Related