Mail Archives: djgpp/2003/12/25/14:47:02
Eli Zaretskii <eliz AT elta DOT co DOT il> wrote in message news:<uk74ql597 DOT fsf AT elta DOT co DOT il>...
> > From: "Gisle Vanem" <giva AT bgnett DOT no>
> > Date: Sun, 21 Dec 2003 12:36:41 +0100
> > >
> > > I am giving the compiler the -O3 option
> > >
> > > Only trouible is, my for() loop is not fast enough.
> >
> > How do to know? It may be your board is insert wait-states betwen
> > each port read.
>
> Good questions, IMHO. The OP is encouraged to post information about
> the speed of the for-loop, and why is that ``not fast enough''.
>
> > You can use a "rep insb" or "rep insw" instructions if
> > the board can keep up.
> >
> > extern inline void rep_insb (unsigned short port, unsigned char *buf, size_t bytes)
>
> DJGPP already has in its library functions inportsb, inportsw, and
> inportsl to do this.
Thanks for the help on this. I hadn't come accross that inportsb
function before and tried that. Still not quick enough and I am now
thinking that I need a little more hardware between the data source
and the PC as I calculated that I would need a PC 10 times quicker
than the 850MHz celleron I was using. Even if I did make the PC ten
times quicker I would then also be beyond the abilities of this
capture card. I have decided to do the fast work in hardware and then
hand the rest of the job to the PC.
Thanks
Sourcerer.
- Raw text -