By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,385 Members | 1,737 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,385 IT Pros & Developers. It's quick & easy.

Linux program use times() to Windows

P: n/a
Hi all,

I am reading a book "Computer Systems A progammer's Perspective"(
http://csapp.cs.cmu.edu/public/students.html ).
The book have a chapter talking about Memory and have a sample program(
http://csapp.cs.cmu.edu/public/mountain.tar ).
I want to use it in VC6.0 and windows.

But the program use a <sys/times.h> times()
(http://www.die.net/doc/linux/man/man2/times.2.html). It seems cannot
be compiled in VC6.0.
Is there any counterpart function in Windows?

BTW, where to discuss Linux program port to Windows?

Any suggestions will be appreciated!
Best regards,
Davy

Dec 11 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Davy wrote:
Hi all,

I am reading a book "Computer Systems A progammer's Perspective"(
http://csapp.cs.cmu.edu/public/students.html ).
The book have a chapter talking about Memory and have a sample program(
http://csapp.cs.cmu.edu/public/mountain.tar ).
I want to use it in VC6.0 and windows.

But the program use a <sys/times.h> times()
(http://www.die.net/doc/linux/man/man2/times.2.html). It seems cannot
be compiled in VC6.0. nor in Standard C, the topic of this NG. It's labeled as a posix
function in my man page. Is there any counterpart function in Windows? Of course, if you invoke one of various varieties of posix emulation.
Both Windows-specific details and posix are outside the scope of c.l.c.
How about trying Google et al, or, if you wish to make the examples
even less portable, look up your Windows API documentatation.
BTW, where to discuss Linux program port to Windows?

on forums specific to your chosen compiler, should you think it worth
the hassle.
Dec 11 '05 #2

P: n/a
Davy wrote:
Hi all,

I am reading a book "Computer Systems A progammer's Perspective"(
http://csapp.cs.cmu.edu/public/students.html ).
The book have a chapter talking about Memory and have a sample program(
http://csapp.cs.cmu.edu/public/mountain.tar ).
I want to use it in VC6.0 and windows.

But the program use a <sys/times.h> times()
(http://www.die.net/doc/linux/man/man2/times.2.html). It seems cannot
be compiled in VC6.0.
Is there any counterpart function in Windows?

BTW, where to discuss Linux program port to Windows?


Try cygwin + a windows version of gcc
Dec 11 '05 #3

P: n/a
Tim Prince <tp*****@nospamcomputer.org> wrote:
on forums specific to your chosen compiler, should you think it worth
the hassle.


Why is it that the people who are so finnicky about getting the
"newsgroups:" line correct, are also the ones who never read the
"newsgroups:" line?

If the message is ALREADY being posted to the appropriate newsgroup,
by all means tell the poster not to crosspost to yours, but don't tell
them to post to the appropriate newsgroup.

--
Lucian
Dec 11 '05 #4

P: n/a
In article <hb********************************@4ax.com>,
Lucian Wischik <lu***@wischik.com> wrote:
Tim Prince <tp*****@nospamcomputer.org> wrote:
on forums specific to your chosen compiler, should you think it worth
the hassle.


Why is it that the people who are so finnicky about getting the
"newsgroups:" line correct, are also the ones who never read the
"newsgroups:" line?

If the message is ALREADY being posted to the appropriate newsgroup,
by all means tell the poster not to crosspost to yours, but don't tell
them to post to the appropriate newsgroup.


That's just the way clc is. Get used to it.

(I'm reading and posting this from clc, so it makes sense for me to be
posting in this style. I grant that it looks stupid if you are reading
this from some other newsgroup - but again, that's just the way clc is...)

Dec 11 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.