10-18-2012
Homework rules !
Why do you ask about prof info at homeworks forum..... do you contact to prof and tell him that this student asked for our help?
I asked that because some of them are very strickt and conseder that as cheating
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What rules?
I have been searching for hours on the internet and just cannot seem to find the command you would type to add a serial port or the file that specifies whether a filesystem shoudl be mounted at boot time or not............. (1 Reply)
Discussion started by: Xskwizitboi
1 Replies
2. Post Here to Contact Site Administrators and Moderators
https://www.unix.com/showthread.php?t=2971
Spelling Error.
You 'Adhere' to rules, not adhear. (2 Replies)
Discussion started by: Tux
2 Replies
3. Post Here to Contact Site Administrators and Moderators
rules are there but asking 2 questions out of 30 is surely understanable esp when the instructor gives an open book test and urged us to seek answers anywhere we can except from him directly. (2 Replies)
Discussion started by: vrn
2 Replies
4. Homework & Coursework Questions
Homework Help:
On Posting Questions:
Any and all high school and undergraduate homework assignments or textbook style exercises for which you are seeking assistance are to be posted only in our Homework & Coursework Questions area--not in blogs, visitor messages, PMs, or the main technical... (0 Replies)
Discussion started by: Neo
0 Replies
5. Post Here to Contact Site Administrators and Moderators
Hi, in my case, I have a question for topics that are slightly dealt with in class, which I am investigating on my own but which are not directly related to the lessons.
Do I have to put the name of the school and others?
(I can't put the name of the professor because is against the school rules... (2 Replies)
Discussion started by: Naky
2 Replies
prof(5) Standards, Environments, and Macros prof(5)
NAME
prof - profile within a function
SYNOPSIS
#define MARK
#include <prof.h>
void MARK(name);
DESCRIPTION
MARK introduces a mark called name that is treated the same as a function entry point. Execution of the mark adds to a counter for that
mark, and program-counter time spent is accounted to the immediately preceding mark or to the function if there are no preceding marks
within the active function.
name may be any combination of letters, numbers, or underscores. Each name in a single compilation must be unique, but may be the same as
any ordinary program symbol.
For marks to be effective, the symbol MARK must be defined before the header prof.h is included, either by a preprocessor directive as in
the synopsis, or by a command line argument:
cc -p -DMARK work.c
If MARK is not defined, the MARK(name) statements may be left in the source files containing them and are ignored. prof -g must be used
to get information on all labels.
EXAMPLES
In this example, marks can be used to determine how much time is spent in each loop. Unless this example is compiled with MARK defined on
the command line, the marks are ignored.
#include <prof.h>
work( )
{
int i, j;
. . .
MARK(loop1);
for (i = 0; i < 2000; i++) {
. . .
}
MARK(loop2);
for (j = 0; j < 2000; j++) {
. . .
}
}
SEE ALSO
profil(2), monitor(3C)
SunOS 5.10 3 Jul 1990 prof(5)