public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Yusuke Matsuoka" <yusuke@ee.ucla.edu>
To: "'Andrew Lunn'" <andrew@lunn.ch>, "'Gary Thomas'" <gary@mlbassoc.com>
Cc: <ecos-discuss@sources.redhat.com>
Subject: RE: [ECOS] how to link "gettimeofday" with arm-elf-gcc?
Date: Thu, 20 Nov 2003 22:34:00 -0000	[thread overview]
Message-ID: <001101c3afb6$7eac0fe0$99596180@worldcup> (raw)
In-Reply-To: <20031120220619.GE2130@lunn.ch>

Hi Andrew and Gary,

Thanks for the reply.

I want to run the KVM(K virtual machine for Java) on eCos and
want to measure the exec time of my Java application on the board.
The original KVM implementation uses "gettimeofday", and I got
the linker error.

Since I need a *millisecond* resolution, is there a better way 
rather than including snmp?
I want to keep the footprint small.
(ctime(time()) is a *second* resolution, right?)

Thanks,
Yusuke

> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com 
> [mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of 
> Andrew Lunn
> Sent: Thursday, November 20, 2003 2:06 PM
> To: Yusuke MATSUOKA
> Cc: ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] how to link "gettimeofday" with arm-elf-gcc?
> 
> 
> > I got an error that linker cannot find "gettimeofday" as follows:
> 
> gettimeofday was added the posix only recently, so eCos does not yet
> implement it as part of libc. 
> 
> Either use ctime(time()) or include the snmp stack which does have
> gettimeofday().
> 
>         Andrew
> 
> -- 
> Before posting, please read the FAQ: 
> http://sources.redhat.com/fom/ecos
> and search the list 
> archive: http://sources.redhat.com/ml/ecos-discuss
> 


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

  reply	other threads:[~2003-11-20 22:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20 17:52 [ECOS] Sending Raw Ethernet packets (ether_output, ether_output_frame, __enet_send ?) kevin_lemay
2003-11-20 18:44 ` Andrew Lunn
2003-11-20 21:47   ` [ECOS] how to link "gettimeofday" with arm-elf-gcc? Yusuke MATSUOKA
2003-11-20 22:06     ` Andrew Lunn
2003-11-20 22:34       ` Yusuke Matsuoka [this message]
2003-11-20 22:38         ` Gary Thomas
2003-11-20 22:40         ` Andrew Lunn
2003-11-20 22:09     ` Gary Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001101c3afb6$7eac0fe0$99596180@worldcup' \
    --to=yusuke@ee.ucla.edu \
    --cc=andrew@lunn.ch \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=gary@mlbassoc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).