* compiling problem for monitoring program (uses parallel port)
@ 1998-12-23 16:02 Tad Grosvenor
1998-12-23 16:05 ` Dave Beck
1998-12-23 17:53 ` mgraffam
0 siblings, 2 replies; 4+ messages in thread
From: Tad Grosvenor @ 1998-12-23 16:02 UTC (permalink / raw)
To: axp-list
I love the program on sunsite called portato
(http://metalab.unc.edu/pub/Linux/system/status/portato-1.2.tar.gz) but I
can't seem to make it compile on my alpha.
This program turns on and off (very rapidly) 8 leds that are connected to
the parallel port, giving information on cpu usage, net, disk etc.
It compiles without any problems on and intel machine that i can get my
hands on, but won't on my alpha. I suspect that this is due to something
specific to the parallel port code for the alpha.
The program is tiny, so if anyone who is a C programmer would take a look
at it I would be very grateful.
Thanks,
Tad
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: compiling problem for monitoring program (uses parallel port)
1998-12-23 16:02 compiling problem for monitoring program (uses parallel port) Tad Grosvenor
@ 1998-12-23 16:05 ` Dave Beck
1998-12-23 17:53 ` mgraffam
1 sibling, 0 replies; 4+ messages in thread
From: Dave Beck @ 1998-12-23 16:05 UTC (permalink / raw)
To: axp-list
If I remember correctly, that program has a few lines of x86 assembly in
it.
Quoting Tad Grosvenor (tad@shortbus.luddite.net):
> I love the program on sunsite called portato
> (http://metalab.unc.edu/pub/Linux/system/status/portato-1.2.tar.gz) but I
> can't seem to make it compile on my alpha.
>
> This program turns on and off (very rapidly) 8 leds that are connected to
> the parallel port, giving information on cpu usage, net, disk etc.
>
> It compiles without any problems on and intel machine that i can get my
> hands on, but won't on my alpha. I suspect that this is due to something
> specific to the parallel port code for the alpha.
>
> The program is tiny, so if anyone who is a C programmer would take a look
> at it I would be very grateful.
>
> Thanks,
> Tad
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--
Dave Beck
dave@arginine.umdnj.edu Sites of interest (set 2):
Computer Science and Biology http://www.cyc.com/cyc-2-1/toc.html
Drexel University, Philadelphia PA http://arginine.umdnj.edu/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: compiling problem for monitoring program (uses parallel port)
1998-12-23 16:02 compiling problem for monitoring program (uses parallel port) Tad Grosvenor
1998-12-23 16:05 ` Dave Beck
@ 1998-12-23 17:53 ` mgraffam
1998-12-23 19:26 ` Philip Blundell
1 sibling, 1 reply; 4+ messages in thread
From: mgraffam @ 1998-12-23 17:53 UTC (permalink / raw)
To: Tad Grosvenor; +Cc: axp-list
On Wed, 23 Dec 1998, Tad Grosvenor wrote:
> This program turns on and off (very rapidly) 8 leds that are connected to
> the parallel port, giving information on cpu usage, net, disk etc.
Sounds neat. I like parallel projects.
> It compiles without any problems on and intel machine that i can get my
> hands on, but won't on my alpha. I suspect that this is due to something
> specific to the parallel port code for the alpha.
Nope. The problem is that it uses assembler to grab the parallel port
status (assumption: the compile bombs because of asm directives).
Anyhow, it'll take someone with experience in Alpha assembler to get
this one ported; which just put the whole thing out of my grasp.
Michael J. Graffam (mgraffam@idsi.net)
"Let your life be a counter-friction to stop the machine."
Henry David Thoreau "Civil Disobedience"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: compiling problem for monitoring program (uses parallel port)
1998-12-23 17:53 ` mgraffam
@ 1998-12-23 19:26 ` Philip Blundell
0 siblings, 0 replies; 4+ messages in thread
From: Philip Blundell @ 1998-12-23 19:26 UTC (permalink / raw)
To: axp-list; +Cc: Tad Grosvenor
>Nope. The problem is that it uses assembler to grab the parallel port
>status (assumption: the compile bombs because of asm directives).
>
>Anyhow, it'll take someone with experience in Alpha assembler to get
>this one ported; which just put the whole thing out of my grasp.
If it just uses inb and outb instructions then the thing to do is to convert
it to use <sys/io.h> and the corresponding C functions (of the same name...) -
that will work on Alpha and probably most other platforms too.
For 2.1 kernels there is also a driver available to let you poke at the
parallel port from user space without having to know the details of the
hardware.
p.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-12-23 20:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-23 16:02 compiling problem for monitoring program (uses parallel port) Tad Grosvenor
1998-12-23 16:05 ` Dave Beck
1998-12-23 17:53 ` mgraffam
1998-12-23 19:26 ` Philip Blundell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox