code
code 

所属分类:系统编程
开发工具:C++ Builder
文件大小:7KB
下载次数:3
上传日期:2011-05-01 22:51:46
上 传 者kamranhaiderbscs
说明:  Code for Process management functions simulation

文件列表:
code (0, 2011-04-07)
code\code Description.txt (1181, 2011-04-05)
code\commander.c (1915, 2011-04-05)
code\init.txt (94, 2011-04-05)
code\intq.c (836, 2011-04-05)
code\intq.h (443, 2011-04-05)
code\Makefile.txt (1332, 2011-04-05)
code\pcbtable.c (1311, 2011-04-05)
code\pcbtable.h (386, 2011-04-05)
code\procman.c (2876, 2011-04-05)
code\procman.h (197, 2011-04-05)
code\progarray.c (1344, 2011-04-05)
code\progarray.h (511, 2011-04-05)

1) Always compile your program with the "-Wall" switch so you can see ALL the warnings. 2) To debug (using the debugger) compile with the "-g" switch. Then, enter the debugger by typing, "gdb a.out" (replace a.out with the name of your executable). Once in the debugger, enter: run [arg1] [arg2]...[argn], where [argi] is a command-line argument The program will either complete correctly, or will generate an error (for example, segfault). The source code line number will be displayed at the point where your program crashes. You can also enter "where" to get a stack trace. 3) At some point, I will discuss makefiles. Use of makefiles will help when you have a project involving multiple 'C' source files. 4) Some online 'C' tutorials: http://www.cs.cf.ac.uk/Dave/C/CE.html http://www.physics.drexel.edu/courses/Comp_Phys/General/C_basics/c_tutorial.html http://www.its.strath.ac.uk/courses/c/

近期下载者

相关文件


收藏者