Source-to-source compiler

Short description: Translator of computer source code

Not to be confused with Cross compiler, Compiler-compiler, Transcoder, or Transputer.

Program execution

General concepts

* Code
* Translation
* Compiler
* Compile-time
* Optimizing compiler
* Intermediate representation (IR)
* Execution
* Runtime system
* Runtime
* Executable
* Interpreter
* Virtual machine

Types of code

* Source code
* Object code
* Bytecode
* Machine code
* Microcode

Compilation strategies

* Just-in-time (JIT)
* Tracing just-in-time
* Ahead-of-time (AOT)
* Transcompilation
* Recompilation

Notable runtimes

* Android Runtime (ART)
* Common Language Runtime (CLR) & Mono
* crt0
* HHVM
* Java virtual machine (JVM)
* Objective-C
* V8
* Node.js
* PyPy
* Zend Engine

Notable compilers & toolchains

* GNU Compiler Collection (GCC)
* LLVM
* Clang

* v
* t
* e

Data transformation

Concepts

* Metadata
* Data element
* Data mapping
* Data migration
* Data transformation
* Model transformation
* Macro
* Preprocessor

Transformation languages

* ATL
* AWK
* MOFM2T
* QVT
* XML languages

Techniques and transforms

* Identity transform
* Data refinement

Applications

* Data conversion
* Data migration
* Data integration
* Extract, transform, load (ETL)
* Web template system

Related

* Data wrangling
* Transformation languages

* v
* t
* e

A source-to-source translator, source-to-source compiler (S2S compiler), transcompiler, or transpiler[1][2][3] is a type of translator that takes the source code of a program written in a programming language as its input and produces an equivalent source code in the same or a different programming language, usually as an intermediate representation. A source-to-source translator converts between programming languages that operate at approximately the same level of abstraction, while a traditional compiler translates from a higher level language to a lower level language. For example, a source-to-source translator may perform a translation of a program from Python to JavaScript, while a traditional compiler translates from a language like C to assembly or Java to bytecode.[4] An automatic parallelizing compiler will frequently take in a high level language program as an input and then transform the code and annotate it with parallel code annotations (e.g., OpenMP) or language constructs (e.g. Fortran's `forall` statements).[2][5]

Another purpose of source-to-source-compiling is translating legacy code to use the next version of the underlying programming language or an application programming interface (API) that breaks backward compatibility. It will perform automatic code refactoring which is useful when the programs to refactor are outside the control of the original implementer (for example, converting programs from Python 2 to Python 3, or converting programs from an old API to the new API) or when the size of the program makes it impractical or time-consuming to refactor it by hand.

Transcompilers may either keep translated code structure as close to the source code as possible to ease development and debugging of the original source code or may change the structure of the original code so much that the translated code does not look like the source code.[6] There are also debugging utilities that map the transcompiled source code back to the original code; for example, the JavaScript Source Map standard allows mapping of the JavaScript code executed by a web browser back to the original source when the JavaScript code was, for example, minified or produced by a transcompiled-to-JavaScript language.[citation needed] Examples include Closure Compiler, CoffeeScript, Dart, Haxe, Opal, TypeScript and Emscripten.[7]

## Contents

* 1 Assembly language translators
* 1.1 Intel CONV86
* 1.2 SCP TRANS86
* 1.3 Sorcim TRANS86
* 1.4 Digital Research XLT86
* 1.5 Others
* 2 Programming language implementations
* 3 Porting a codebase
* 4 Transcompiler pipelines
* 4.1 Recursive transcompiling
* 5 See also
* 6 Notes
* 7 References
* 8 Further reading
* 9 External links

## Assembly language translators

So called Assembly language translators are a class of source-to-source translators converting code from one assembly language into another, including (but not limited to) across different processor families and system platforms.

### Intel CONV86

Intel marketed their 16-bit processor 8086 to be source compatible to the 8080, an 8-bit processor.[8] To support this, Intel had an ISIS-II-based translator from 8080 to 8086 source code named CONV86[9][10][11][12] (also referred to as CONV-86[13] and CONVERT 86[14][15]) available to OEM customers since 1978, possibly the earliest program of this kind.[nb 1] It supported multiple levels of translation and ran at 2 MHz on an Intel Microprocessor Development System MDS-800 with 8-inch floppy drives. According to user reports, it did not work very reliably.[16][17]

### SCP TRANS86

Seattle Computer Products (SCP) offered TRANS86.COM,[15][18][19] written by Tim Paterson in 1980 while developing 86-DOS.[20][21][22] The utility could translate Intel 8080 and Zilog Z80 assembly source code (with Zilog/Mostek mnemonics) into source code for the Intel 8086 (in a format only compatible with SCP's cross-assembler ASM86 for CP/M-80), but supported only a subset of opcodes, registers and modes, and often still required significant manual correction and rework afterwards.[23][20] Also, performing only a mere transliteration,[14][18][9][10] the brute-force single-pass translator did not carry out any register and jump optimizations.[24][25] It took about 24 KB of RAM.[15] The SCP version 1 of TRANS86.COM ran on Z80-based systems.[15][18] Once 86-DOS was running, Paterson, in a self-hosting-inspired approach, utilized TRANS86 to convert itself into a program running under 86-DOS.[22][18] Numbered version 2, this was named TRANS.COM instead.[18][25][24][26][27] Later in 1982, the translator was apparently also available from Microsoft.[15][28]

### Sorcim TRANS86

Also named TRANS86, Sorcim offered an 8080 to 8086 translator as well since December 1980.[29][14] Like SCP's program it was designed to port CP/M-80 application code (in ASM, MAC, RMAC or ACT80 assembly format) to MS-DOS (in a format compatible with ACT86).[29][15][30][31] In ACT80 format it also supported a few Z80 mnemonics. The translation occurred on an instruction-by-instruction basis with some optimization applied to conditional jumps. The program ran under CP/M-80, MP/M-80 and Cromemco DOS with a minimum of 24 KB of RAM, and had no restrictions on the source file size.[15][32]

### Digital Research XLT86

Much more sophisticated and the first to introduce optimizing compiler technologies into the source translation process was Digital Research's XLT86 1.0 in September 1981. XLT86 1.1 was available by April 1982.[33] The program was written by Gary Kildall[14][34][35][36] and translated source code for the Intel 8080 processor (in a format compatible with ASM, MAC or RMAC assemblers) into {{Not a typo|A86 he 8086 (compatible with ASM86). Using [[global data flow analysis on 8080 register usage,[37][14][38][39] the five-phase multi-pass translator would also optimize the output for code size and take care of calling conventions (CP/M-80 BDOS calls were mapped into BDOS calls for CP/M-86), so that CP/M-80 and MP/M-80 programs could be ported to the CP/M-86 and MP/M-86 platforms automatically. XLT86.COM itself was written in PL/I-80 for CP/M-80 platforms.[40][15][33][41] The program occupied 30 KB of RAM for itself plus additional memory for the program graph. On a 64 KB memory system, the maximum source file size supported was about 6 KB,[40][15][42][33] so that larger files had to be broken down accordingly before translation.[15][33] Alternatively, XLT86 was also available for DEC VAX/VMS.[15][33] Although XLT86's input and output worked on source-code level, the translator's in-memory representation of the program and the applied code optimizing technologies set the foundation to binary recompilation.[43][44][45]

### Others

2500 AD Software offered an 8080 to 8086 source-code translator as part of their XASM suite for CP/M-80 machines with Z80 as well as for Zilog ZEUS and Olivetti PCOS systems.[46]

Since 1979, Zilog offered a Z80 to Z8000 translator as part of their PDS 8000 development system.[47][48][49][50][51][17] Advanced Micro Computers (AMC)[51][17] and 2500 AD Software offered Z80 to Z8000 translators as well.[46] The latter was named TRANS[52][53] and was available for Z80 CP/M, CP/M-86, MS-DOS and PCOS.[46]

The Z88DK development kit provides a Z80 to i486 source code translator targeting nasm named "to86.awk", written in 2008 by Stefano Bodrato.[54] It is in turn based on an 8080 to Z80 converter written in 2003 by Douglas Beattie, Jr., named "toz80.awk".[54]

In 2021, Brian Callahan wrote an 8080 CP/M 2.2 to MS-DOS source code translator targeting nasm named 8088ify.[55]

## Programming language implementations

This list is incomplete; you can help by expanding it.

The first implementations of some programming languages started as transcompilers, and the default implementation for some of those languages are still transcompilers. In addition to the table below, a CoffeeScript maintainer provides a list of languages that compile to JavaScript.[56]

List of transcompilers[4] Name  | Source language  | Target language  | Comments

|
|
|

Babel | ECMAScript 6+ (JavaScript)  | ES5  |
Cerberus X | Cerberus  | JavaScript, Java, C++, C# |
Cfront | C++ | C |
ClojureScript  | Clojure | JavaScript  |
CoffeeScript | CoffeeScript | JavaScript  |
Dafny | Dafny  | C#, JavaScript, Java, C++, Go, Python |
Dart | Dart | JavaScript  |
h5[57] | C# | JavaScript  |
Eiffel, via EiffelStudio | Eiffel  | C, Common Intermediate Language |
Elm | Elm | JavaScript  |
Fable | F# | JavaScript  |
Fable Python | F#  | Python  |
Haxe | Haxe | ActionScript 3, JavaScript, Java, C++, C#, PHP, Python, Lua |
HipHop for PHP (HPHPc)  | PHP | C++  |
J2ObjC[58] | Java  | Objective-C |
JSweet[59] | Java  | TypeScript |
Kotlin/JS | Kotlin | JavaScript  |
Maia[60] | Maia  | Verilog |
Melange  | OCaml, Reason | JavaScript  |
mrustc | Rust | C  | Experimental compiler able to bootstrap official Rust compiler (rustc)
NACA | COBOL | Java  |
Nim | Nim | C, C++, Objective-C, JavaScript  |
PureScript | PureScript | JavaScript  |
ReScript | ReScript | JavaScript  |
Sather | Sather  | C  |
Scala.js | Scala | JavaScript  |
Swiftify[61] | Objective-C | Swift |
V | V  | C  |
Vala | Vala  | C  |
Visual Eiffel | Eiffel | C  |

## Porting a codebase

When developers want to switch to a different language while retaining most of an existing codebase, it might be better to use a transcompiler compared to rewriting the whole software by hand. Depending on the quality of the transcompiler, the code may or may not need manual intervention in order to work properly. This is different from "transcompiled languages" where the specifications demand that the output source code always works without modification. All transcompilers used to port a codebase will expect manual adjustment of the output source code if there is a need to achieve maximum code quality in terms of readability and platform convention.

Tool | Source language | Target language | Comments

|
|
|

2to3 script | Python 2 | Python 3 | Even though 2to3 does its best at automating the translation process, further manual corrections are often needed.
Emscripten | LLVM bytecode | JavaScript | This allows running C/C++ codebases in a browser for example
c2go[62] | C | Go | Before the 1.5 release, the Go compiler was written in C. An automatic translator was developed to automatically convert the compiler codebase from C into Go.[63][64] Since Go 1.5, the "compiler and runtime are now implemented in Go and assembler, without C".
C2Rust[65] | C | Rust | C2Rust takes C code as input and outputs `unsafe` Rust code, focusing on preserving compatibility with the original codebase. Several documented limitations exist for this process. Converting the resulting code to safe and idiomatic Rust code is a manual effort post translation, although an automated tool exists to ease this task.[65]
Google Web Toolkit | Java program that uses a specific API | JavaScript | The Java code is a little bit constrained compared to normal Java code.
Js_of_ocaml[66] of Ocsigen | OCaml | JavaScript |
J2Eif[67] | Java | Eiffel | The resulting Eiffel code has classes and structures similar to the Java program but following Eiffel syntax and conventions.
C2Eif[68] | C | Eiffel | The resulting Eiffel code has classes and structures that try to be as clean as possible. The tool is complete and relies on embedding the C and assembly code if it cannot translate it properly.
Skip[69] | Swift | Kotlin | Skip is an Xcode plug-in that transpiles a Swift iOS app or library using SwiftUI into equivalent native Kotlin code for Android using Jetpack Compose.
Swiftify[70] | Objective-C | Swift | Swiftify is an online source to source conversion tool from Objective-C into Swift. It assists developers who are migrating all or part of their iOS codebase into Swift. The conversion is aimed primarily at converting the syntax between Objective-C and Swift, and is helped because Apple took efforts to ensure compatibility between Swift and Objective-C runtimes.
Runtime Converter[71] | PHP | Java | The Runtime Converter is an automatic tool which converts PHP source code into Java source code. There is a Java runtime library for certain features of the PHP language, as well as the ability to call into the PHP binary itself using JNI for PHP standard library and extension function calls.

## Transcompiler pipelines

A transcompiler pipeline is what results from recursive transcompiling. By stringing together multiple layers of tech, with a transcompile step between each layer, technology can be repeatedly transformed, effectively creating a distributed language independent specification.

XSLT is a general-purpose transform tool that can be used between many different technologies, to create such a derivative code pipeline.[72]

### Recursive transcompiling

Recursive transcompilation (or recursive transpiling) is the process of applying the notion of transcompiling recursively, to create a pipeline of transformations (often starting from a single source of truth) which repeatedly turn one technology into another.

By repeating this process, one can turn A → B → C → D → E → F and then back into . Some information will be preserved through this pipeline, from A → {{Not a typo|A(v2)} ion (at an abstract level) demonstrates what each of the components A–F agree on.

In each of the different versions that the transcompiler pipeline produces, that information is preserved. It might take on many different shapes and sizes, but by the time it comes back to , having been transcompiled six times in the pipeline above, the information returns to its original state.

This information which survives the transform through each format, from , is (by definition) derivative content or derivative code.

Recursive transcompilation takes advantage of the fact that transcompilers may either keep translated code as close to the source code as possible to ease development and debugging of the original source code, or else they may change the structure of the original code so much, that the translated code does not look like the source code. There are also debugging utilities that map the transcompiled source code back to the original code; for example, JavaScript source maps allow mapping of the JavaScript code executed by a web browser back to the original source in a transcompiled-to-JavaScript language.

## See also

* Binary recompiler
* C to HDL - Conversion of C-like programs into hardware description languages
* Code generation (compiler) - Converting computer code into a machine readable form
* Software:DMS Software Reengineering Toolkit - a source-to-source compiler framework using explicit pattern-directed rewrite rules
* Software:F2c - a source-to-source compiler from Fortran 77 to C
* Intermediate representation - Data structure or code used by a compiler
* Language binding - Software library that allows using another library coded in another programming language
* Language-independent specification - Computer programming standard meant to be interoperable across programming languages
* Language interoperability
* Object code optimizer, also known as Binary optimization - Tools for optimizing binary code
* Preprocessor - Program that processes input for another program
* Program transformation - Automated generation of a computer program
* Software:ROSE (compiler framework) - a source-to-source compiler framework
* Translator (computing) - Computer program that translates code from one programming language to another
* XSLT

## Notes

1. ↑ One commercial program known to have been machine-translated under ISIS-II from 8080 CP/M-80 source code to 8086 CP/M-86 using Intel's CONV86 was MicroPro's WordStar 3.0 in September 1981.

## References

1. ↑ ARC-Softwaresystems (June 1988). "Aus BASIC mach C: B→C Transpiler" (in de). Amiga-Magazin (Esslingen, Germany: Markt & Technik Verlag Aktiengesellschaft) 1988 (6): 101. ISSN 0933-8713. https://archive.org/details/AmigaMagazin198806. Retrieved 2020-01-18. "[…] Achtung C- und Basic-Programmierer! […] Jetzt gibt es den B→C TRANSPILER das einzigartige Umwandlungs-Software-System von ARC […] Der B→C TRANSPILER übersetzt lauffähige AMIGA-Basicprogramme in compilierbaren C-Code. […] Durch Spezialbefehle kann C-Code in Basicprogramme direkt integriert werden. […] Basic-Befehle werden erweitert transpiliert. (HAM-Modus, IFF, usw. werden unterstützt). […] Mit diesem Konzept neuester Generation verbindet der B→C TRANSPILER auf einzigartige Weise die Vorteile eines Interpreters mit denen eines Compilers […]". [1]
2. ↑ 2.0 2.1 "Configuring parallel programs, Part 1: The Occam Transpiler, now under development, will make writing software for parallel processing easier". BYTE (McGraw-Hill, Inc.) 14 (13): 349–352. December 1989. ark:/13960/t34188734. ISSN 0360-5280. https://archive.org/details/byte-magazine-1989-12/page/n382/mode/1up. Retrieved 2022-01-06. "[…] The name Transpiler is meant to suggest a combination of transputer and compiler, in just the same way that transputer was coined from transistor and computer (i.e., a computer that is also a component). […]". (NB. Uses the term Occam transpiler as a synonym for a source-to-source compiler working as a pre-processor that takes a normal Occam program as input and derives a new Occam source code as output with link-to-channel assignments etc. added to it thereby configuring it for parallel processing to run as efficient as possible on a network of transputers.)
3. ↑ ((Sector 7 Software Limited)) (1993-12-07). "Transpiler". Official Gazette of the United States Patent and Trademark Office (Bedford, Bedfordshire, UK: U.S. Patent and Trademark Office) 1157: p. TM 81. SN 74-316.610. https://books.google.com/books?id=Aokm04NulboC&pg=RA1-PA81. "[…] Priority claimed under Sec. 44(D) on United Kingdom Application No. 1495953, filed 1992-03-31 Reg. No. A1495953, dated 1992-03-31, expires 1999-03-31. For computer software and programs (U.S. Cl. 38). First use 1991-08-01, in commerce 1991-08-01." (NB. This company develops products such as VX/BASIC, a BASIC-to-C transpiler for DEC VMS. Despite their claim, theirs is not the first public use of the term transpiler, see i.e. ARC's BASIC-to-C transpiler for the Amiga in 1988 and the Occam Transpiler by Concurrent Technology Systems (CTS) in 1989.)
4. ↑ 4.0 4.1 "Transpiler". 2017-03-17. https://devopedia.org/transpiler.
5. ↑ "Types of compilers". compilers.net. 1997–2005. http://www.compilers.net/paedia/compiler/index.htm.
6. ↑ "Transparent Compilation". 2013-02-12. http://martinfowler.com/bliki/TransparentCompilation.html.
7. ↑ "HTML5 Epic Citadel". http://www.unrealengine.com/html5.
8. ↑ 8086/8088/80286 assembly language. Brady Books. 1988. p. 12. ISBN 978-0-13-246919-7. https://archive.org/details/8086808880286ass0000scan/page/12. "[…] The 8086 is software-compatible with the 8080 at the assembly-language level. […]"
9. ↑ 9.0 9.1 MCS-86 Assembly Language Converter Operating Instructions For ISIS-II Users. Santa Clara, California, USA: Intel Corporation. March 1979. Order No. 9800642A. https://archive.org/details/bitsavers_intelISISIblyLanguageConverterOperatingInstruction_3712591. Retrieved 2020-01-18. [2] (NB. A newer version of this manual can be found here.)
10. ↑ 10.0 10.1 MCS-86 Assembly Language Converter Operating Instructions For ISIS-II Users. Santa Clara, California, USA: Intel Corporation. February 1980. Order No. 9800642-02. https://archive.org/details/bitsavers_intelISISImblyLanguageConverterFeb80_2443878. Retrieved 2020-01-18. [3] [4] (NB. An older version of this manual can be found here.)
11. ↑ "The 8086/8087/8088 Development Environment". ASM86 Language Reference Manual. Santa Clara, California, USA: Intel Corporation. November 1983. pp. 1-1–1-2. Order Number 121703-003. https://mark-ogden.uk/files/intel/publications/121703-003 ASM86 Language Reference Manual-Nov83#Mar85.pdf. Retrieved 2023-11-28. (404 pages)
12. ↑ The 80386 Book: Assembly Language Programmer's Guide for the 80386. Microsoft Programming Series (1 ed.). Microsoft Press. January 1989. p. 2. ISBN 978-1-55615-138-5. "[…] An Intel translator program could convert 8080 assembler programs into 8086 assembler programs […]"
13. ↑ The 8086 Family User's Manual. Intel Corporation. October 1979. pp. ((2-74, 2-92, B-176)). Order No. 9800722-03. https://archive.org/details/bitsavers_intel80869lyUsersManualOct79_62967963. Retrieved 2020-01-18. "[…] other programs round out the software development tools available for the 8086 and 8088. […] CONV-86 can do most of the conversion work required to translate 8080/8085 assembly language source modules into ASM-86 source modules. […] To facilitate conversion of 8080A/8085A assembly language programs to run on the iSBC 86/12A board CONV-86 is available under the ISIS-II operating system." [5] [6]
14. ↑ 14.0 14.1 14.2 14.3 14.4 "Program translators do it literally – and sometimes in context". InfoWorld – News For Microcomputer Users (Popular Computing, Inc.) 3 (22): p. 19. 1981-10-19. ISSN 0199-6649. https://books.google.com/books?id=Gj0EAAAAMBAJ&pg=PA19. "[…] "Unless you have a translating scheme that takes account of the peculiar idiosyncrasies of the target microprocessor, there is no way that an automatic translator can work," explains Daniel Davis, a programmer with Digital Research. "You'll end up with direct transliterations." […] In spite of all these limitations, progress has been made recently in the development of translators. Most notably, Digital Research has introduced its eight- to 16-bit assembly code translator. Based on research performed by Digital Research president Gary Kildall, the XLT86 appears to offer advances over previously available software translator technology. Like Sorcim's Trans and Intel's Convert 86, Kildall's package translates assembly-language code from an 8080 microprocessor to an 8086. However, Kildall has applied a global flow analysis technique that takes into account some of the major drawbacks of other translators. The procedure analyzes the register and flag usage in sections of 8080 code in order to eliminate nonessential code. According to Digital Research programmer Davis, the algorithm Kildall uses allows the translator to consider the context as it translates the program. Until now, one of the major problems with any translator program has been the inability of the software to do much more than transliteration. If Digital Research's new translator actually advances the technology to the point where context can be considered, then more software translators may proliferate in the microcomputer marketplace."
15. ↑ 15.00 15.01 15.02 15.03 15.04 15.05 15.06 15.07 15.08 15.09 15.10 "Upward migration – Part 1: Translators – Using translation programs to move CP/M-86 programs to CP/M and MS-DOS". BYTE (BYTE Publications Inc.) 7 (6): 321–322, 324, 326, 328, 330, 332, 334, 336, 338, 340, 342, 344. June 1982. CODEN BYTEDJ. ISSN 0360-5280. https://tech-insider.org/personal-computers/research/acrobat/8206-b.pdf. Retrieved 2020-01-15. "[…] Digital Research's XLT86 takes standard 8080 source code in a format compatible with ASM, MAC, or RMAC assemblers and converts the 8080 source code to 8086 source code in a format compatible with ASM86 operating under either CP/M-80 or CP/M-86. Since XLT86 is written in PL/I-80, the translator can run either stand-alone under CP/M-80 or for cross development under VAX/VMS. It produces optimized 8086 code in a five-phase, multipass process, doing global data-flow analysis to determine optimal register usage. Although macro definitions are not supported, conditional-assembly directives are […] if you want macro expansion, you can use a pass through MAC or RMAC to produce a PRN file that can be edited […] to produce an expanded source file for input acceptable to XLT86. XLT86 does not recognize Z80 instructions. XLT86 passes repeat loops through to the 8086 source code. XLT86 analyzes the source program in its entirety, determining the block structure and the register/flag usage. Working from this information, it translates the code to 8086 assembler code in an optimized way. The decision algorithm for each instruction type is given in […] the manual […] Register mapping generally follows […] with a loose relationship between the 8086 AX and the 8080 PSW; the exact relationship is determined from register usage at translate time. Many runtime options are available to control the translation process, both on the command line and embedded in the 8080 source text. […] XLT86 is a sophisticated program that does a reasonable job of optimizing the translation of 8080 source code to 8086 source code. BDOS calls from CP/M-80 are mapped into BDOS calls that are compatible with CP/M-86. XLT86 has special features for handling translation of conditional JMP and CALL instructions in 8080 source code. In the 8080 instructions, JMP and CALL instructions are capable of reaching any address within the 64K-byte region. The 8086 conditional JMP instructions can reach only 128 bytes on either side of the IP […] register. XLT86 examines the target of the conditional JMP. If the target cannot be reached, XLT86 changes the sense of the conditional JMP and skips over a long JMP to the target address. Since there are no conditional CALL or RET instructions in the 8086, the sense of the condition is changed and a short conditional JMP is performed to skip over an unconditional CALL or RET. […] the segment registers allow for separation of code and data regions. […] XLT86 examines an expression and determines the proper segment for the particular instruction. […]". [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] (13 pages)
16. ↑ "Re: What if IBM didn't choose the Intel CPU!". Vintage Computer Forum. 2013-02-24. http://www.vcfed.org/forum/archive/index.php/t-35844.html. "[…] The original 8086 assembler ran on an 8080-equipped MDS-80 dev system. One of the first products was a 8080 to 8086 source level translator. I recall that the speed of translation was phenomenally slow. […] our sales guy offered to run a conversion and verification test at the local sales office […] We […] started the job on the ISIS-II MDS 200 series there--they even had a hard disk, which was an outrageously expensive option for an MDS […] still crunching when we left for the night. It still wasn't done the next morning […] About 2 weeks later, after the Intel software guys had a look at the translator, Ed returned with the translated program. It was about 50% larger in size than the original 8085 version, which sort of went counter to Intel's claims for the translator. […]"
17. ↑ 17.0 17.1 17.2 "Re: DOS code in CP/M? Revisited…". Vintage Computer Forum. 2016-12-31. http://www.vcfed.org/forum/archive/index.php/t-53239.html. "[…] Intel had an ISIS-hosted translator from 8080-to-8086 code. I can remember spending a very frustrating day at the local Intel sales office with a sample bit of 8080 code--a basic BCD floating-point package for the 8080 and waiting for hours for the translator to finish its work--and going home disappointed. About a week later, I received a call that they'd finally figured out the bugs and I could pick up my translated program. Said program was more than half-again as large as the original in terms of object bytes. I was a bit skeptical of the Intel claim back then that the 8086 code was far more compact than its 8080 counterpart. And the blasted thing didn't work anyway when it was put to the test. […] There were other 80-to-86 translators for CP/M. I recall that Sorcim had one. AMC had a Z80-to-Z8000 translator as well. […] The [Intel] translator had several levels of translation […] there was the "literal", preserving detailed operation […] it was ISIS-II, running on an MDS-800, at, what, 2 MHz with 8" floppies. […]"
18. ↑ 18.0 18.1 18.2 18.3 18.4 "Microsoft Macro Assembler (MASM) Unofficial Changelist". 2018-08-21. http://bytepointer.com/masm/index.htm. "[…] Tim Paterson […] had the following to say about his 8086 Assembler he wrote while at SCP: "The 8086 assembler I wrote originally was in Z80 assembly language and ran under CP/M. I believe it was distributed with the SCP 8086 CPU card as ASM86. I also wrote a translator that converted Z80 source code to inefficient but workable 8086 source code (Intel promoted this idea with a published translation table). This was called TRANS86 and was also written in Z80 assembly for CP/M. Once DOS was working, I applied the translator to ASM86 (and to itself) to create 8086 versions that ran under DOS. I do not have the change history in front of me […], but I believe that versions >= 2 marked the translated (DOS) version. If any history shows version numbers < 2, that was the CP/M version." […]"
19. ↑ Cite error: Invalid `<ref>` tag; no text was provided for refs named `Paterson_1983`
20. ↑ 20.0 20.1 Seattle Computer Products (August 1980). "86-DOS – 8086 OPERATING SYSTEM - $95". BYTE (BYTE Publications Inc.) 5 (8): 173. CODEN BYTEDJ. ISSN 0360-5280. https://archive.org/stream/byte-magazine-1980-08/1980_08_BYTE_05-08_The_Forth_Language#page/n173/mode/2up. Retrieved 2013-08-18. "[…] 1. Read Z80 source code file written in CP/M format and convert to 86-DOS format. 2. Translator program translates Z80 source code to 8086 source code. 3. Resident assembler assembles the translated 8086 source code to 8086 object code. 4. Minor hand correction and optimization. (A recent 19K Z80 program translation took us about four hours to fix up. Even without optimization, it ran twice as fast as the original! […])". [21]
21. ↑ "The Origins of DOS: DOS Creator Gives His View of Relationship Between CP/M, MS-DOS". Microprocessor Report (MicroDesign Resources (MDR)) 8 (13). 1994-10-03. ISSN 0899-9341. http://www.ece.umd.edu/courses/enee759m.S2000/papers/paterson1994-kildall.pdf. "[…] To get major software developers to port their products from the 8080/Z80 to the 8086, I decided we had to make it as easy as possible. I had already written a Z80-to-8086 source code translator (hosted on the 8080 and CP/M). My plan was that running an 8080 CP/M program through the translator would be the only work required by software developers to port the program to the 8086. In other words, the interface used by applications to request operating system services would be exactly the same as CP/M's after applying the translation rules. […]".
22. ↑ 22.0 22.1 "Design of DOS". DosMan Drivel. 2007-09-30. http://dosmandrivel.blogspot.com/2007/09/design-of-dos.html. "[…] CP/M Translation Compatibility […] For DOS to succeed, it would need useful applications (like word processing) to be written for it. I was concerned that SCP might have trouble persuading authors of application software to put in the effort to create a DOS version of their programs. Few people had bought SCP's 16-bit computer, so the installed base was small. Without the applications, there wouldn't be many users, and without the users, there wouldn't be many applications. […] My hope was that by making it as easy as possible to port existing 8-bit applications to our 16-bit computer, we would get more rogrammers to take the plunge. And it seemed to me that CP/M translation compatibility was what would make the job as easy as possible. Intel had defined rules for translating 8-bit programs into 16-bit programs; CP/M translation compatibility means that when a program's request to CP/M went through the translation, it would become an equivalent request to DOS. […] So I made CP/M translation compatibility a fundamental design goal. This required me to create a very specific Application Program Interface that implemented the translation compatibility. I did not consider this the primary API – there was, in fact, another API more suited to the 16-bit world and that had more capabilities. Both APIs used CP/M-defined constructs (such as the "File Control Block"); the compatibility API had to, and I didn't see a reason to define something different for the primary API. […] I myself took advantage of translation compatibility. The development tools I had written, such as the assembler, were originally 8-bit programs that ran under CP/M (CDOS). I put them through the translator and came up with 16-bit programs that ran under DOS. These translated tools were included with DOS when shipped by SCP. But I don't think anyone else ever took advantage of this process. […]"
23. ↑ "Z80 To 8086 Translator". Z80/8086 Cross Assembler Release 1 (Preliminary ed.). Seattle, Washington, USA: Seattle Computer Products. pp. 20–21. https://amaus.net/static/S100/seattle computer products/software/SCP Z80 8086 cross assembler.pdf. Retrieved 2020-01-18. "[…] The Seattle Computer Products Z80 to 8086 Translator runs on the Z80 under CP/M. It accepts as input a Z80 source file written using Zilog/Mostek mnemonics and converts it to an 8086 source file in a format acceptable to our 8086 Cross Assembler. To translate a file, simply type TRANS86 <filename>.<ext>. Regardless of the original extension, the output file will be named <filename>.A86 and will appear on the same drive as the input file. A file named TRNTEST.Z80 is included to demonstrate the translator. The entire Z80 assembly language is not translated. […]" [22]
24. ↑ 24.0 24.1 86-DOS – Disk Operating System for the 8086. User's manual (Preliminary ed.). Seattle, Washington, USA: Seattle Computer Products. 1980. http://www.patersontech.com/dos/Docs/86_Dos_usr_03.pdf. Retrieved 2020-02-01.
25. ↑ 25.0 25.1 Cite error: Invalid `<ref>` tag; no text was provided for refs named `Paterson_2014_MSDOS125`
26. ↑ SCP 86-DOS – Single-User Disk Operating System for the 8086 (Preliminary ed.). Seattle, Washington, USA: Seattle Computer Products. 1980. https://archive.org/stream/bitsavers_seattleCominary_1042322/SCP_86-DOS_Preliminary_djvu.txt. Retrieved 2020-01-18. "[…] The source code translator can translate most Z80 source code into 8086 source code acceptable to the assembler after minor manual correction. This provides a relatively quick and easy way to transport programs between the processors. […] TRANS file […] The Z80-to-8086 Source Code Translator, called by this command, is essentially identical to our version that runs on the Z80, which is described in the back of the Assembler manual. The only differences: 1. The Translator is called TRANS, not TRANS86, and it runs on the 8086 under 86-DOS, not on the Z80 under CP/M. 2. The extension of the output file is "ASM", not "A86". […]" [23]
27. ↑ Z80 To 8086 Translator. Seattle Computer Products. pp. ((TRANS-1–TRANS-2)). https://amaus.net/static/S100/seattle computer products/software/SCP Z80 to 8086 translator.pdf. Retrieved 2020-01-19. (23 pages)
28. ↑ "CP/M-86 And MS-DOS: A Comparative Analysis". PC Magazine. Operating Systems (Software Communications, Inc.) 1 (7): 181–182, 187–190 [189]. November 1982. https://books.google.com/books?id=vy3cBZkjbZgC&pg=PA189. Retrieved 2020-02-10. "[…] An impressive and useful array of software development utilities is a standard feature of MS-DOS. A program that translates 8080 or Z80 code into 8086 source code, a linker, and a library runtime combine with a powerful assembler to give the programmer everything needed to take full advantage of the PC's 16-bit processor. The MS-DOS translation program allows the user to translate code developed under CP/M-80 or SB-80 […] 8-bit operating system […] to MS-DOS 1.2 or 2.0. Some modification beyond simple translation may be necessary to get the programs to run on 16-bit systems, so I suggest that this tool be used primarily by a technically trained user. […]".
29. ↑ 29.0 29.1 "According to Garetz…". InfoWorld – News For Microcomputer Users (Popular Computing, Inc.) 2 (23): p. 12. 1980-12-22. ISSN 0199-6649. https://books.google.com/books?id=nD4EAAAAMBAJ&pg=PT11. "[…] Last week was the semi-annual California Computer Swap Meet. This event is organized by John Craig […] Sorcim […] was debuting […] new products at the show […] Their other product was TRANS-86. TRANS-86 will take any CP/M compatible 8080/8085/Z-80 source code file and translate it into 8086 code. You can then assemble the new file with ACT-86. […]"
30. ↑ Blumenfeld, Dan (1982-12-04). "Z80 to 8086 translator". Newsgroup: fa.info-cpm. Archived from the original on 2020-01-16. Retrieved 2020-01-15. [24]
31. ↑ "CompuPro". PC: The Independent Guide To IBM Computers (Software Communications, Inc.) 1 (1): 70–71. February–March 1982. Premiere/Charter issue. https://archive.org/details/bub_gb_w_OhaFDePS4C. Retrieved 2020-01-23. "[…] WHY? FLEXIBILITY. CompuPro's 85/88 CPU runs CP/M 80, 86, MP/M II and MP/M 86. We offer WORDSTAR dBASE II SUPERCALC a host of languages, 8080 to 8088 translators and more! COMPATIBILITY. Our systems can use CP/M 2.2 utilities to write programs for the IBM PC. You simply create 8088 source (either write it with your favorite CP/M 80 editor or translate it with Sorcim's TRANS 86), cross-assemble your source (with Sorcim's ACT86), link your hex file (with CP/M 80's LOAD command), translate it to the IBM PC (with G&G's CPM-IBM program), and run it on your IBM PC! This procedure DOES NOT require MS-DOS! […] WHY? FLEXIBILITY. CompuPro's 85/88 CPU runs CP/M 80 & 86 or MS-DOS. We offer WORDSTAR, dBASE II, TRANS86, XLT86, ACT86, SUPERCALC, CBASIC, MBASIC, MFORTRAN and more! […]". [25] [26]
32. ↑ "Sorcim' Somethin'". Silicon Gulch Gazette (Woodside, California, USA: Computer Faire) 7 (30): pp. 1, 2, 4, 6, 11, 14, 15 [11]. July 1982. https://amaus.net/static//S100/MAGAZINE/silicon gulch/30 198207 silicon gulch.pdf. "[…] Sorcim just completed the purchase of ISA. […] They have also had an 8080-to-8086 translator – Trans-86 – operational for over a year […]"
33. ↑ 33.0 33.1 33.2 33.3 33.4 "XLT-86, a CP/M utility program by Digital Research". InfoWorld – The Newsweekly for Microcomputer Users (Popular Computing, Inc.) 4 (13): pp. 40–41, 53. 1982-04-05. ISSN 0199-6649. https://books.google.com/books?id=ZjAEAAAAMBAJ&pg=PA40. "[…] XLT-86 1.1 […] XLT-86 is an analytical translator program written in PL/I-80. It reads the entire 8080 source program, assembles it to machine code, analyzes the register, memory and flag utilization, and emits an optimized 8086 assembly-language program. […] There is also a version of XLT-86 for those of you who have access to a VAX 11/750 or 11/780. This version can translate much larger programs. It also costs $8000. […] While the translator adds some labels and equates to the source program as part of the translation, all original comments and program labels are passed through intact to the translated program. […] The program translation proceeds in a five-step process. First, the program is scanned and assembled to produce symbol values and locations. Second, the program structure is analyzed and decomposed into basic blocks. Third, the basic blocks are analyzed to determine program flow and resource usage. Forth, the block structure and register allocation data is gathered into a listing for the user. Fifth, the flow information and source program are used to produce the 8086 source program. […]"
34. ↑ "Digital Research founder discusses his view of the business". InfoWorld – The Newsweekly for Microcomputer Users (Popular Computing, Inc.) 4 (15): pp. 23–24. 1982-04-19. ISSN 0199-6649. https://books.google.com/books?id=YzAEAAAAMBAJ&pg=PA23. "[…] Kildall: […] A year and a half ago I was probably spending 75% of my time on the business and 25% on programming. XLT-86 was a product I was working on at that time, and it took me nine months to do it. That would have been a three-month project if I had been able to concentrate on it. […]"
35. ↑ Bunnell, David Hugh; Edlin, Jim, eds (June–July 1982). "Gary Kildall – The Man Who Created CP/M: CP/M's Creator – An Indepth PC-Exclusive Interview with Software Pioneer Gary Kildall". PC Magazine. Operating Systems (Software Communications, Inc.) 1 (3): 32–38, 40 [35]. https://archive.org/stream/PC-Mag-1982-06/PC-Mag-1982-06_djvu.txt. Retrieved 2020-01-17. "[…] PC: What are some of the complexities involved in translating a program from 8080 to 8086 form? Kildall: Straight translations at the source program level you can do pretty much mechanically. For example, an 8080 "Add immediate 5" instruction turns into an "Add AL 5" on the 8086 — very straightforward translation of the op codes themselves. The complexity in mechanical translation comes from situations such as this: The 8080 instruction DAD H takes the HL register and adds DE to it. For the 8086 the equivalent instruction would be something like ADD DX BX, which is fine, no particular problem. You just say the DX register is the same as HL and BX the same as DE. The problem is that the 8086 instruction has a side effect of setting the zero flag, and the 8080 instruction does not. In mechanical translation you end up doing something like saving the flags, restoring the flags, doing some shifts and rotates, and so forth. These add about five or six extra instructions to get the same semantic effect. There are a lot of sequences in 8080 code that produce very strange sequences in 8086 code; they just don't map very well because of flag registers and things of that sort. The way we get software over is a thing called XLT-86. It's been out six months or so. PC: By "better" code do you mean smaller? Kildall: Twenty percent smaller than if you just took every op code and did a straight translation, saving the registers to preserve semantics. PC: How does the size of the translated program compare to the 8080 version? Kildall: If you take an 8080 program, move it over to 86 land and do an XLT-86 translation, you'll find that it is roughly 10 to 20 percent larger. With 16-bit machines it's more difficult to address everything; you get op codes that are a little bit bigger on the average. An interesting phenomenon is that one of the reasons you don't get a tremendous speed increase in the 16-bit world is because you're running more op codes over the data bus. […]".
36. ↑ Laws, David, ed (2014-04-25). "Legacy of Gary Kildall: The CP/M IEEE Milestone Dedication". Pacific Grove, California, USA: Computer History Museum. https://archive.computerhistory.org/resources/access/text/2014/06/102746909-05-01-acc.pdf. "[…] Rolander: I mentioned earlier that Gary liked to approach a problem as an architect. […] And he would draw the most beautiful pictures of his data structures. […] And when he finished that […] and was convinced those data structures were now correct, he would go into just an unbelievable manic coding mode. He would just go for as many as 20 hours a day […] he was just gone during these periods of time. On a couple of those occasions, when he'd get something running the first time, which could be in the middle of night. And all you who have written software have seen that, for example, that the first time it comes up on the screen, you've got to tell somebody. My wife Lori will tell you that I had a couple of those calls in the middle of the night, LOGO was one example, XLT 86 was another, where he got it running the first time, and he had to have somebody see it. So it didn't matter what time it was, he'd call me, I'd have to come over and see it running. […]" [27] [28] (33 pages)
37. ↑ "XLT86 Reduces Conversion Effort in Assembly Language Program Translation". Digital Research News – for Digital Research Users Everywhere. Product Update (Pacific Grove, California, USA: Digital Research, Inc.) 1 (1): 2, 7. November 1981. Fourth Quarter. https://amaus.net/static/S100/software/DRI/Digital Research News/01x01 1981 Digital Research News.pdf. Retrieved 2020-01-18. "[…] An 8- to 16-bit assembly code translator is now available from Digital Research. Called XLT86, it is designed to help ease the time-consuming process of converting CP/M software products from 8080- to 8086-based microcomputers. XLT86 can be used to translate any assembly language programs that are compatible with Digital Research's ASM, MAC or RMAC assembler format. The XLT86 program translator first reads an 8080 assembly language program and then produces an output file containing 8086 assembly language statements acceptable to the Digital Research ASM-86 assembler. Unlike other 8086 code converters that translate a single 8080 instruction into as many as ten 8086 instructions, XLT86 performs extensive data flow analysis to determine register usage throughout the original program. The information collected through this analysis is used during program translation to eliminate unnecessary flag save and restore operations. "The resulting 8086 program is both simpler and more compact than equivalent programs produced by other translators," according to Curt Geske, of the Digital Research marketing group. "Furthermore, XLT86 allows OEMs, end users and software vendors to preserve their investment in 8080-based assembly language programs when changing to 16-bit 8086-based computers by reducing the conversion effort." Programs translated by XLT86 run on both CP/M-86 and MP/M-86 […] XLT86 is available immediately. It operates on any 8-bit CP/M or MP/M system, or under the VMS operating-system for use on Digital Equipment Corporation VAX series minicomputers. The CP/M version is priced at $150\. The VAX version sells for $8,000. […]".
38. ↑ "A unified approach to global program optimization". Proceedings of the 1st annual ACM SIGACT-SIGPLAN symposium on Principles of programming languages - POPL '73. Boston, Massachusetts, USA. 1973-10-01. pp. 194–206. doi:10.1145/512927.512945. http://static.aminer.org/pdf/PDF/000/546/451/a_unified_approach_to_global_program_optimization.pdf. Retrieved 2006-11-20.
39. ↑ Global expression optimization during compilation (Ph.D. dissertation). Seattle, Washington, USA: University of Washington, Computer Science Group. May 1972. Thesis No. 20506, Technical Report No. 72-06-02.
40. ↑ 40.0 40.1 XLT86 – 8080 to 8086 Assembly Language Translator – User's Guide (First printing ed.). Pacific Grove, California, USA: Digital Research, Inc.. September 1981. archive.org copy. http://www.s100computers.com/Software Folder/Assembler Collection/Digital Research XLT86 Manual.pdf. Retrieved 2016-11-18.
41. ↑ "XLT86 for CP/M-80". Digital Research. http://www.cpm.z80.de/download/xlt86.zip. (NB. This ZIP archive contains the CP/M-80 executable XLT86.COM [22 KB] as well as two overlay files XLT00.OVL [8 KB] and XLT01.OVL [9 KB].)
42. ↑ Goldfarb, Ben (1982-12-09). "Re: 8080 to 8086 translation". Newsgroup: fa.info-cpm. Archived from the original on 2020-02-01. Retrieved 2020-01-18. "[…] The XLT86 program occupies approximately 30K bytes of main memory. The remainder of memory, up to the base of CP/M, stores the program graph that represents the 8086 program being translated […] A 64K CP/M system allows translation of 8080 programs of up to approximately 6K. […]" [29] [30]
43. ↑ "Gary Kildall, industry pioneer, dead at 52: created first microcomputer languages, disk operating systems". Microprocessor Report (MicroDesign Resources Inc. (MDR)) 8 (10). 1994-08-01. http://tech-insider.org/personal-computers/research/1994/0801.html. Retrieved 2016-11-18. "[…] Ironically, many of the techniques Gary pioneered are being rediscovered now, ten years later. Apple and DEC are touting binary recompilation as a "new" technology for porting existing software to the PowerPC or Alpha architecture. Actually, DRI introduced an 8080-to-8086 binary recompiler in the early 1980s. […]".
44. ↑ "SPA Award to Dr. Gary A.Kildall: 1995 SPA Lifetime Achievement Award Winner". Software Publishers Association (SPA). 1995-03-13. https://www.digitalresearch.biz/kildallr.htm. "[…] Kildall founded Digital Research, Inc. (DRI) in 1976, which is now part of Novell. […] In the 1980's, DRI introduced a binary recompiler. […]"
45. ↑ "Gary Kildall and Collegial Entrepreneurship". Dr. Dobb's Journal. 1997-04-01. http://www.drdobbs.com/architecture-and-design/gary-kildall-and-collegial-entrepreneurs/184410428. Retrieved 2006-11-20. "In March, 1995, the Software Publishers Association posthumously honored Gary for his contributions to the computer industry. They listed some of his accomplishments: […] In the 1980s, through DRI, he introduced a binary recompiler. […]".
46. ↑ 46.0 46.1 46.2 ((2500 A.D. Software)) (1984-12-11). "Super assemblers plus the world's largest selection of cross assemblers". PC Magazine (Englewood, Colorado, USA: PC Communications Corp.) 3 (24): 166–167. ISSN 0745-2500. https://books.google.com/books?id=D0O_-ER3Z_gC&pg=PA166. Retrieved 2020-01-24. "[…] 8086/88 Assembler With Translator $99.50 Available for MSDOS, PCDOS, or CP/M-86 […] This package also includes […] an 8080 to 8086 source code translator (no limit on program size to translate) […] Z-8000 Cross Development Package $199.50 […] This powerful package includes a Z-80/8080 to Z-8000 Assembly Language Source Code Translator […] The Translators provide Z-8000 source code from the Intel 8080 or Zilog Z-80 source code. The Z-8000 source code used by these packages are in the unique 2500AD syntax using Zilog mnemonics designed to make the transition from Z-80 code writing to Z-8000 easy […] 8086 and Z-8000 XASM includes source code translators […]". (NB. 8086/88 XASM available for Z-80 CP/M, Zilog System 8000 UNIX, Olivetti M-20 PCOS; Z-8000 XASM for Z-80 CP/M, MS-DOS, CP/M-86, Olivetti M-20 PCOS.)
47. ↑ "Zilog Unveils Modular Development System". Computerworld – The Newsweekly for the Computer Community (Cupertino, California, USA: Computerworld, Inc.) XIII (34): p. 46. 1979-08-20. ISSN 0010-4841. https://books.google.com/books?id=PKmCIHDeN6kC&pg=PA46. "[…] Zilog, Inc. has introduced a series of modular and expandable product development systems (PDS) for Z8-, Z80-, and Z8000-based microcomputer designs. All four versions of the PDS 8000 system – models 10, 15, 25, and 30 – have […] A standard feature of each system is a Z8000 software development package, which includes the ZDOSII file management routine, PLZ/ASM high-level structured assemblers, a Z80/Z8000 translator and a Z8000 L and MACP macroprocessor. […] The models 10 and 25 have the same specifications as the models 15 and 30, respectively. but the 10 and 25 do not include the Z8000 development module. The PDS Model 10 is priced at $10,485; the Model 15 at $11,995; the Model 25 at $20,000; and the Model 35 at $21,500. All four systems are available 30 days after receipt of the order. […]"
48. ↑ Orlansky, Jesse, ed (1979). Proceedings 27–29 November 1979 – 1st Interservice/Industry Training Equipment Conference. The Center. p. 413. Technical report NAVTRAEQUIPCEN. https://books.google.com/books?id=O7MgcxB_ZlYC&pg=PA413. Retrieved 2020-01-24. "[…] Table 1. 16-Bit Microprocessor Characteristics […] Zilog 8000 […] Software […] Zilog expects to support Z8000 with translators for PLZ, BASIC, COBOL and FORTRAN. These will permit conversion of Z80 code to Z8000 code, since Z8000 set is superset to Z80. […]"
49. ↑ PDS 8000 Development System – The integrated approach to systems design (Product Brief). Zilog. January 1980. https://archive.org/details/TNM_PDS_8000_development_system_for_systems_desig_20180331_0008. Retrieved 2020-01-24. "[…] Z8000 TRANSLATOR: Provides a quick means to convert an existing Z80 Assembly Language program to Z8000 code and the PLZ/ASM program format. […]" [31] [32]
50. ↑ "Books, Boards and Software for The New 16-Bit Processors". InfoWorld – The Newspaper for the Microcomputing Community (Popular Computing, Inc.) 3 (9): pp. 42–43. 1981-05-11. ISSN 0199-6649. https://books.google.com/books?id=Cz4EAAAAMBAJ&pg=PA43. "[…] Digital Research has also announced plans for a Z8000 version of CP/M. Application software will be moved to the Z8000 when more development software is available. A commercially available translator from Z80 to Z8000 is needed. […]"
51. ↑ 51.0 51.1 "Re: CP/M or similar OS for 64K Z8002?". Vintage Computer Forum. 2009-01-21. http://www.vcfed.org/forum/archive/index.php/t-13845.html. "[…] both Zilog and AMC offered Z80-to-Z8000 translation programs. Like the Intel 8080-to-8086 translator, it resulted in immediate bloat unless you were willing to hand-optimize the result. Much early MS-DOS code was auto-translated and tweaked 8080 CP/M code. I know that much of SuperCalc for the PC was, for example. Early (e.g. 3.3) versions of Wordstar for DOS probably also were. […] There were Z80-to-Z8000 source-code translators, but it wasn't a straightforward process ("strict" and "relaxed" modes; sometimes one Z80-to-several Z8000 instructions). The 8086 is much closer to the 8080 than the Z8000 is to the Z80. […]"
52. ↑ "2500 A.D. Software 8080/Z-80 to Z8000 source code translator v2.06b". 2500 A.D. Software, Inc.. 1982. http://www.vintagecomputer.net/fjkraan/comp/mirror/z80cpu.eu/archive/rlee/L/LOOSECPM/300/U4/TRANS.COM. [33]
53. ↑ "802Z8000.ZIP 2500 A.D. Software 8080/Z-80 to Z8000 source code translator v2.06e". 2500 A.D. Software, Inc.. http://pcsauro.altervista.org/CPMSW/lang/802Z8000.ZIP. [34]
54. ↑ 54.0 54.1 "to86.awk source code". GitHub. 2008-10-30. https://github.com/z88dk/z88dk/blob/master/support/I86/to86.awk.
55. ↑ "Intel 8080 CP/M 2.2 to Intel 8086/8088 MS-DOS assembly language translator.". 2021-10-23. https://cpp.codetea.com/the-famous-intel-8080-cp-m-2-2-to-intel-8086-8088-ms-dos-assembly-language-translator/. [35][36][37][38]
56. ↑ "List of languages that compile to JS". https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS.
57. ↑ theolivenbaum (2021-11-13). "h5 🚀 - C# to JavaScript compiler". https://github.com/theolivenbaum/h5.
58. ↑ "J2ObjC". https://developers.google.com/j2objc/.
59. ↑ "JSweet". http://www.jsweet.org/.
60. ↑ "Maia". http://maia-eda.net.
61. ↑ "Swiftify". https://objectivec2swift.com/#/converter/code/.
62. ↑ "C->Go translator". https://github.com/rsc/c2go.
63. ↑ "Go 1.5 Release Notes". https://golang.org/doc/go1.5.
64. ↑ "Go 1.3+ Compiler Overhaul". https://golang.org/s/go13compiler.
65. ↑ 65.0 65.1 "C2Rust repository". 2022-04-15. https://github.com/immunant/c2rust/blob/master/README.md.
66. ↑ "Overview". Js_of_ocaml - Reference Manual. Ocsigen. http://ocsigen.org/js_of_ocaml/manual/overview.
67. ↑ J2Eif Research Page – Chair of Software Engineering. Se.inf.ethz.ch. 2011. pp. 20–35. doi:10.1007/978-3-642-21952-8_4. ISBN 978-3-642-21952-8. http://se.inf.ethz.ch/research/j2eif/. Retrieved 2014-07-08.
68. ↑ "C2Eif Research Page – Chair of Software Engineering". Se.inf.ethz.ch. http://se.inf.ethz.ch/research/c2eif/.
69. ↑ "Skip". http://skip.tools/.
70. ↑ "Swiftify Objective-C to Swift Converter". https://objectivec2swift.com/.
71. ↑ "Runtime Converter". http://www.runtimeconverter.com/.
72. ↑ World Wide Web Consortium (W3C). "XSL Transformations (XSLT) Version 2.0". https://www.w3.org/TR/xslt-20/

## Further reading

* "Translation of 8080 Code to 8086 - Microsoft Translation of 8080 Code to 8086 and Other 16-Bit Processors". 2020-06-26. https://retrocomputingforum.com/t/translation-of-8080-code-to-8086/1309.
* "Programming of Sycor Units Eased With TAL II". Computerworld – The Newsweekly for the Computer Community (Ann Arbor, Michigan, USA: Computerworld, Inc.) IX (34): p. 14. 1975-08-20. ISSN 0010-4841. https://books.google.com/books?id=tPYveN8W2qgC&pg=PA14.
* "8080 to 8086 ASM translator, with ASM source". SIMTEL. 1986-12-11. http://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/pc/mirror/simtelnet/msdos/asmutl/xlt86.zip. 1984-11-11 version 1.05 (NB. The DOS executable XLT86.COM [12 KB] translates Intel 8080 assembly language source code to Intel 8086 assembly language source code. Despite its name this implementation in 8086 assembly is not related to Digital Research's earlier and much more sophisticated XLT86.)
* "Pasmo, ensamblador cruzado Z80 portable / portable Z80 cross assembler" (in es, en). 2009-04-24. http://pasmo.speccy.org/. "[…] Pasmo is a Z80 cross assembler […] that […] can generate object code in the following formats: raw binary, Intel HEX, PRL for CP/M Plus RSX, Plus3Dos (Spectrum +3 disk), TAP, TZX and CDT (Spectrum and Amstrad CPC emulators tape images), AmsDos (Amstrad CPC disk) and MSX (for use with BLOAD from disk in Basic). Starting with version 0.5.0 […] can also generate 8086 code from Z80 sources, in binary format for Ms-dos COM files or in CP/M 86 CMD format. […]" [39] [40]
* "Trump Card – Part 1: Hardware – Speed up your IBM PC with 16-bit coprocessing power". BYTE – The small systems journal. Ciarcia's Circuit Cellar (McGraw-Hill, Inc.) 9 (5): 40–52, 54–55. May 1984. ISSN 0360-5280. https://www.americanradiohistory.com/Archive-Byte/80s/Byte-1984-05.pdf. Retrieved 2020-01-29. "[…] It instead executes programs written in high-level languages such as BASIC and C (a Pascal compiler and a 8088 to Z8000 translator are in the works. […]". and "Trump Card – Part 2: Software – TBASIC and C compilers and an assemble". BYTE – The small systems journal. Ciarcia's Circuit Cellar (McGraw-Hill, Inc.) 9 (6): 115–122. June 1984. ISSN 0360-5280. https://www.americanradiohistory.com/Archive-Byte/80s/Byte-1984-06.pdf. Retrieved 2020-01-29. "[…] I expect that object-code translators for Z80-to-Z8000 and 8088-to-Z8000 conversions will soon be available […]". , also available as "Trump Card – Part 1: Hardware – Speed up your IBM PC with 16-bit coprocessing power & Part 2: Software – TBASIC and C compilers and an assemble". Ciarcia's Circuit Cellar. 7. McGraw-Hill Publishing Company. 1990. pp. 138–152, 153–160. ISBN 0-07-010969-9. https://books.google.com/books?id=fBuiNpYlyHcC&pg=RA2-PA138. Retrieved 2020-01-29. [41][Usurped!]
* Microcontroller Division Application Team (2000). "Translating Assembly Code From HC05 To ST7". STMicroelectronics. https://www.st.com/content/ccc/resource/technical/document/application_note/4f/89/a9/95/41/e7/4f/4c/CD00004128.pdf/files/CD00004128.pdf/jcr:content/translations/en.CD00004128.pdf. (9 pages) (NB. This software translator was developed by ST and translates Motorola 6805/HC05 assembly source code in 2500AD Software format into ST7 source code. The MIGR2ST7.EXE executable for Windows is available from "MCU ON CD".)
* "What do people mean when they say "transpiler"?". 2017-07-30. http://composition.al/blog/2017/07/30/what-do-people-mean-when-they-say-transpiler/.

## External links

* "Das Intel zu Zilog – Übersetzungsprojekt" (in de). I2Z-Translator. 2009-07-11. http://www.prof80.de/i2zkurz.html.
* "PortAsm Assembler to Assembler Translation". MicroAPL Ltd. 2017. http://microapl.com/Porting/PortAsm.html.
* "Our Methodology – The Source to Source Conversion Process". Micro-Processor Services, Inc. (MPS). http://www.mpsinc.com/process.html.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Source-to-source compiler. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Source-to-source_compiler&oldid=4344834"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template