For Programmers: Free Programming Magazines  


Home > Archive > Compilers > July 2005 > Re: Machine language and assembler translators?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Machine language and assembler translators?
glen herrmannsfeldt

2005-07-24, 8:59 pm

Jack Crenshaw wrote:

> I have built translators like this for machine/assembly language, with
> mixed results. Yes, it can be done. But it won't be efficient code.


(snip)

> Our first translator, back in the 8-bit days, involved translating 8080
> assembly language to 6800. That's probably the worst-case scenario for
> two reasons.


Recently there was a discussion in another newsgroup on 8080 to 8086
translation.

It seems that intel designed the 8086 to make assembly source
translation easy. Some 8086 instructions originally existed only for
that reason. Though it isn't necessary that one 8080 instruction
generate one 8086 instruction.

One interesting case is the instruction for loading the 8080 A
register into the flags register. The equivalent 8086 instruction
turned out to be very useful when the 8087 was designed. The 8087,
being a separate processor, needed a way to get the flags back to the
8086. They are stored into memory, loaded into AH, and then into the
flags register to be used for conditional tests.

Features of the pentium 4 can be traced back to the 8080, 30 years ago.

Then again, much of the instruction set of IBM's current
z/Architecture came from S/360 over 40 years ago.

-- glen
Martin Ward

2005-07-26, 5:03 pm

On Saturday 23 Jul 2005 01:17, you wrote:
> Features of the pentium 4 can be traced back to the 8080, 30 years ago.


How similar are the 8080 and the 4040 (and its 4 bit predecessor, the 4004)?
Did any 4004 features survive to the pentium 4?
I believe the 4004 was the first ever microprocessor.

--
Martin

Martin.Ward@durham.ac.uk http://www.cse.dmu.ac.uk/~mward/ Erdos number: 4
glen herrmannsfeldt

2005-07-28, 4:02 am

Martin Ward wrote:
> On Saturday 23 Jul 2005 01:17, you wrote:


[color=darkred]
> How similar are the 8080 and the 4040 (and its 4 bit predecessor, the 4004)?
> Did any 4004 features survive to the pentium 4?
> I believe the 4004 was the first ever microprocessor.


Well, the 4004 was designed for building calculators, one reason
for its four bit width.

There was a specific design goal in keeping the 8086 assembly source
compatible with the 8080, but I don't believe that was true earlier.

Or course many features, such as the ability to add and subtract are
common between them for obvious reasons.

-- glen
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com