Maker Pro
Maker Pro

you can't bash Microsoft enough

M

Mike Monett

Jan 1, 1970
0
"Mainstream" Linux distributions such as Red Hat's, Mandrivas, or
Ubuntu's are just as bloated these days.

The linux distributions were always quite large. But has that affected the
reliability? If it has, you'd think there would be a great stink over on
Slashdot:)

Regards,

Mike Monett
 
M

MooseFET

Jan 1, 1970
0
On May 2, 5:42 pm, John Larkin
On May 2, 8:18 am, John Larkin
jasen wrote:
linux in less than 256 kilobytes ???
====
was that ever possible?
Sorry, meg of course. Still harking back to the days of OS9 with 64kb
RAM....
My embedded products use a cpu with 2K bytes of on-chip ram. I've
rarely needed more, even on products with user interfaces and eternet.
2K bytes, Luxury! I did a multitasking[1] OS in 256 bytes.
[1] 3 is multiple, isn't it.
That ain't a lot of room to save even three contexts on three stacks.
Which CPU?
It was 8052. The fact that the registers are 8 memory locations and
the PSW selected which 8 made pushes for them not needed. There are 4
banks but we had to have one free.
I did a preemptive RTOS for the 6800 (the 8 bit one) with unlimited
tasks. Each task had its own stack, and the 6800 automatically pushed
all the regs onto the current stack on a hardware interrupt or an SWI.
So task context was mostly saved for free... all you had to do was
stash the stack pointer itself into the task header, and it was all
wrapped up... then run the scheduler to see who was up next.
The first micro I programmed was the 6800, I found it fairly easy to
work with. It had a lot more intructions than a PDP-8 but not so many
that I got lost among them. The little debugger IIRC: "JBUG" worked
quite nicely.
It is really too bad that the "personal computer" had to wait for the
IBM PCB to become a common item. Your OS for example could have
started the world on a much better track.
I agree that it is a very good teaching tool. I also think that
writing a set of 32 bit integer math routines and doing your own
virtual method dispatcher should be required before anyone is allowed
to write something important.

I sometimes use a little math/ascii conversion package I wrote for the
68K. The math format is 32.32, a longword of signed integer plus a
longword of fraction. That's adequate for near any real-world
variables. It's blindingly fast compared to floats (no normalizing!)
and conversion into/out of integers is instantaneous. All the math
functions saturate, so most of the time it's safe to ignore
exceptions, including division by 0.

I have the same sort of thing for 8051. Mine is just pure integer. I
have add and subtract in 4, 8 and variable numbers of bytes. There is
a 4 bytes times 4 bytes gives 8 bytes multiply and a 8 bytes divided
by 4 bytes gives 4,4 result.

I also have a 2^128 divided by 8 bytes routines for a fast 1/x type of
calculation and a 32 bit sqrt().

There is also a 32 bit binary to BCD and a number formatter and the
usual number inputter.

What is a "virtual method dispatcher"?


The C++ folks incorrectly call them "virtual member functions". In a
OO language there are routines that must be selected at run time not
at compile time. The usual way to do this is: All of your object
structures have an extra entry in them. This item is the Virtual
Method Table pointer. Since each type you declare can have a
different set of routines, there needs to be a VMT for each type.

Psudo code wise it looks like this:

; Compiling: Call GreenBall.Draw

MOV POINTER,@GreenBall ; Point to the object
MOV POINTER2,RAM[POINTER+VMTOffset] ; Address its VMT
ADD POINTER2,#(IndexOfDraw*N) ; Offsetinto the VMT
MOV POINTER2,RAM[POINTER2] ; Load the routine
CALL POINTER2 ; .. address and go

In 8051 land the VMT like thing would be in code space and the VMT
address would really just be an index into a table. The only place
I've really used such a thing in 8051 was to help in doing a mini web
server. For an experimental project.
 
H

Homer J Simpson

Jan 1, 1970
0
Linux is a do-it-yourself toy kit created by hackers and for hackers. It
is free in the same sense, as a free cheese in a mousetrap. The insides of
Linux are the same lack of common sense and structure as in Windows; there
is absolutely nothing to be so proud about as linux fans do.

Free shit beats expensive shit every time.
 
Hmmm... are you aware that their heatsink is bigger than many of our
entire products?

Are you aware that you are changing the subject in order hide the fact
that you were pointing out a *WEAKNESS* in your favorite 68332 CPU not
a strength? Yeah, those extra thousands of Mhz draws more heat.
[...] Our latest 4-channel digital delay generator uses
about 4 watts total, and the FPGA gets warmer than the CPU.

If you wish to decrease the heat draw from a modern CPU, can decrease
the voltage and under-clock the damn thing. Some embedded versions of
the x86 such as AMD's geode processor (which has capabilities more
similar to the 68332 you were talking about) also have very low heat
draw, while running at several hundred Mhz (I don't know the details,
you can look them up.)
We run at 16 or sometimes 20 MHz.

You might as well be running on an abacus. You could buy a MIPS core
and throw it into an FPGA and run faster than that can't you? Its got
to be pretty close anyways.
[....] And we service up to 10,000
interrupts a second for years, without missing a single one... and
without crashing. I wish my dual-CPU 3 GHz PC could keep up with that!

Take the Windows off that 3 Ghz PC of yours, put VxWorks on it and it
can service *MILLIONS* of interrupts per second with 100% reliability.
 
M

Mike Monett

Jan 1, 1970
0
[email protected] wrote:

[...]
If you wish to decrease the heat draw from a modern CPU, can
decrease the voltage and under-clock the damn thing.

I've been wondering about that. It sure would be nice to throttle
down a fast cpu for portable operation. But isn't there a lot of
leakage current in recent CPU's due to the thin gate oxide?

How about the registers - are they static, or do they have some
lower frequency limit?

Has anyone tried underclocking? Does anyone know how far down you
can go?
Some embedded versions of the x86 such as AMD's geode processor
(which has capabilities more similar to the 68332 you were talking
about) also have very low heat draw, while running at several
hundred Mhz (I don't know the details, you can look them up.)
You might as well be running on an abacus. You could buy a MIPS
core and throw it into an FPGA and run faster than that can't you?
Its got to be pretty close anyways.
[....] And we service up to 10,000 interrupts a second for years,
without missing a single one. And without crashing. I wish my
dual-CPU 3 GHz PC could keep up with that!
Take the Windows off that 3 Ghz PC of yours, put VxWorks on it and
it can service *MILLIONS* of interrupts per second with 100%
reliability.

Regards,

Mike Monett
 
J

John Larkin

Jan 1, 1970
0
Hmmm... are you aware that their heatsink is bigger than many of our
entire products?

Are you aware that you are changing the subject in order hide the fact
that you were pointing out a *WEAKNESS* in your favorite 68332 CPU not
a strength? Yeah, those extra thousands of Mhz draws more heat.
[...] Our latest 4-channel digital delay generator uses
about 4 watts total, and the FPGA gets warmer than the CPU.

If you wish to decrease the heat draw from a modern CPU, can decrease
the voltage and under-clock the damn thing. Some embedded versions of
the x86 such as AMD's geode processor (which has capabilities more
similar to the 68332 you were talking about)

Geode is still an x86, and National sold it off to AMD just to get out
of the business. It's been tarted up to the extent that it's pretty
much unsuited to low-power, instrumentation sorts of embedded apps.
also have very low heat
draw, while running at several hundred Mhz (I don't know the details,
you can look them up.)

Umm, aren't details what electronic design is all about? The
bleeding-edge nanometer chips, like the current-gen Intel stuff, have
serious static power dissipation because of gate leakage and such, so
reducing the clock rate still leaves you with 10's of watts.

The problem about using an x86 in an embedded product is that, aside
from the grotesque architecture, the product lifetime is typically a
serious multiple of the processor lifetime. Intel has more than once
introduced a mobile or embedded CPU, promoted design-ins, and canceled
the chip while it was still in the sampling stage. Intel also promoted
"Xscale" (actually their version of Arm) and then lost interest and
dumped it. Motorola manufactured the original depletion-load 6800 for
about 20 years. The 68332 is over 10 years old and will likely be
around long after other chips have gone through multiple
intro-obsolete cycles. Sure, the 8052 will be around forever, but I
consider that a crime against humanity.

The bottom line is that what we're doing works. THAT is what
electronic design is about.
Take the Windows off that 3 Ghz PC of yours, put VxWorks on it and it
can service *MILLIONS* of interrupts per second with 100% reliability.

And then jam it into a product the size of a cell phone?

John
 
J

Joel Kolstad

Jan 1, 1970
0
Homer J Simpson said:
Free shit beats expensive shit every time.

Let me know when something comparable to Microwave Office is free...

Or even Microsoft Office, for that matter. (Although OpenOffice is excellent
and probably suffices for >90% of all Office users' needs... but it's still
nowhere near as powerful.)
 
F

Frank Miles

Jan 1, 1970
0
"Mainstream" Linux distributions such as Red Hat's, Mandrivas, or Ubuntu's are
just as bloated these days.

You have a choice! Sure, you can choose the glossy bloat-ware, if you like.
If you prefer something more spare, you can choose user interfaces (from
most distributions) that are far more spare and efficient. You can skip
X entirely if you want - there are even choices for command-line interpreter.
It won't be as minimalist as DOS, but it will be far more capable and reliable.

-f
--
 
M

MooseFET

Jan 1, 1970
0
Let me know when something comparable to Microwave Office is free...

Or even Microsoft Office, for that matter. (Although OpenOffice is excellent
and probably suffices for >90% of all Office users' needs... but it's still
nowhere near as powerful.)


Oh? What can MS-Office do that I can't do in OO? I have never found
anything missing.
 
H

Homer J Simpson

Jan 1, 1970
0
Joel Kolstad said:
Let me know when something comparable to Microwave Office is free...

Or even Microsoft Office, for that matter. (Although OpenOffice is
excellent and probably suffices for >90% of all Office users' needs... but
it's still nowhere near as powerful.)

You can also use Google's WP / SS for free on the web.
 
Top