Discussion:
trapping 80386
(too old to reply)
muta...@gmail.com
2021-05-02 03:06:05 UTC
Permalink
I'm wondering whether it is possible to trap all
the 80386 instructions used by Smaller C in its
huge memory model, and convert them into
8086 instructions.

For people who have a genuine 8086.

I don't care if it is slow.

Thanks. Paul.
Rod Pemberton
2021-05-02 09:26:37 UTC
Permalink
On Sat, 1 May 2021 20:06:05 -0700 (PDT)
Post by ***@gmail.com
I'm wondering whether it is possible to trap all
the 80386 instructions used by Smaller C in its
huge memory model, and convert them into
8086 instructions.
For people who have a genuine 8086.
I don't care if it is slow.
Does Smaller C emit assembly?

Wouldn't it be easier to rewrite the assembly
code in the compiler?
--
I'd love to answer that, but it would violate the TOS. Liberals can't
handle the truth, because the truth hurts.
Alexei A. Frounze
2021-05-02 18:50:54 UTC
Permalink
Post by Rod Pemberton
On Sat, 1 May 2021 20:06:05 -0700 (PDT)
Post by ***@gmail.com
I'm wondering whether it is possible to trap all
the 80386 instructions used by Smaller C in its
huge memory model, and convert them into
8086 instructions.
For people who have a genuine 8086.
I don't care if it is slow.
Does Smaller C emit assembly?
Wouldn't it be easier to rewrite the assembly
code in the compiler?
I think, that would be most practical.

Alex
muta...@gmail.com
2021-05-02 22:03:27 UTC
Permalink
Post by Rod Pemberton
Post by ***@gmail.com
I'm wondering whether it is possible to trap all
the 80386 instructions used by Smaller C in its
huge memory model, and convert them into
8086 instructions.
For people who have a genuine 8086.
I don't care if it is slow.
Does Smaller C emit assembly?
Wouldn't it be easier to rewrite the assembly
code in the compiler?
Then it would be slower on an 80386.

Wouldn't it be useful in general to support 80386
instructions on an 8086?

Then you can write programs that support "modern"
CPUs and still have them run on old machines, to
support that niche market.

If people on a real 8086 think it is too slow, the onus
is on them to recompile to generate pure 8086 code.

BFN. Paul.

Continue reading on narkive:
Loading...