Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Linux program use times() to Windows

Reply
Thread Tools

Linux program use times() to Windows

 
 
Davy
Guest
Posts: n/a
 
      12-11-2005
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

 
Reply With Quote
 
 
 
 
Tim Prince
Guest
Posts: n/a
 
      12-11-2005
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.
 
Reply With Quote
 
 
 
 
Marc Dansereau
Guest
Posts: n/a
 
      12-11-2005
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
 
Reply With Quote
 
Lucian Wischik
Guest
Posts: n/a
 
      12-11-2005
Tim Prince <> 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
 
Reply With Quote
 
Kenny McCormack
Guest
Posts: n/a
 
      12-11-2005
In article <>,
Lucian Wischik <> wrote:
>Tim Prince <> 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...)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Perl to connect a Linux box to Linux/Windows boxes Krishna Chaitanya Perl Misc 1 02-27-2009 11:44 AM
Is Linux Really Dead On The Desktop? Linus's Own Family Doesn't Use Linux!!!!!!!!!!!!1 linux.freak.detector@gmail.com Computer Support 6 10-21-2007 11:47 AM
Re: Is Netscape Leaving Firefox Behind on GNU/Linux? THE LINUX PROPAGANDA MACHINE CONTINUES. FIREFOX IGNORING LINUX............. traci.manicotti@gmail.com Computer Support 2 10-20-2007 02:12 PM
Linux... yeah linux.. Linux Have a nice cup of pee NZ Computing 19 04-17-2006 10:16 AM
removing linux from a duall boot windows xp/linux setup Golf Nut Computer Information 1 04-24-2004 06:55 PM



Advertisments
 



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