The MASM Forum

Specialised Projects => Assembler/Compiler Technology => Topic started by: tenkey on May 24, 2012, 02:21:17 AM

Title: Yes! you can build a compiler in assembly language!
Post by: tenkey on May 24, 2012, 02:21:17 AM
A C compiler for the Intel 8080 running the CP/M-80 operating system:

http://www.bdsoft.com/resources/bdsc.html

Those were the days.

I remember BDS C. It was a subset C compiler, as it didn't have floating-point. It had pretty much everything else, and was a very fast compiler. It was created long before C went the standardization route. At that time, the only "reference" for the language was The C Programming Language by Kernighan and Ritchie (K & R), which was based on the Unix v7 (not System 7) implementation. As type checking was very lax in this version, it was almost like programming in assembly language. This was also before the complications created by the 16-bit PC's segmented memory architecture.

There were also quite a number of Basic interpreters that were written in assembly language. Microsoft's original Altair Basic and the various versions of ROM-BASIC. Tarbell Basic. All kinds of Tiny Basics were created. All in 100% ASM.
Title: Re: Yes! you can build a compiler in assembly language!
Post by: anta40 on May 24, 2012, 02:40:32 AM
You can also take a look at the PureBasic for AmigaOS. It's open sourced.
(Grab the lzx extractor at http://www.polycode.dk)
Title: Re: Yes! you can build a compiler in assembly language!
Post by: jj2007 on May 24, 2012, 05:12:53 AM
There were also quite a number of Basic interpreters that were written in assembly language. Microsoft's original Altair Basic and the various versions of ROM-BASIC. Tarbell Basic. All kinds of Tiny Basics were created. All in 100% ASM.

Rumours say there are still BASIC assemblers around, with floats and SSE2 and all that stuff. They call it Martian Basic or something similar ::)
Title: Re: Yes! you can build a compiler in assembly language!
Post by: Antariy on May 24, 2012, 01:11:24 PM
Is it Martian ASM BASIC (http://masmforum.com/~masm32/board/index.php?topic=94.msg264#msg264)? :biggrin:
Title: Re: Yes! you can build a compiler in assembly language!
Post by: xandaz on May 31, 2012, 03:04:14 AM
    time to bring back the 48k sinclairs with it's lowres and only 2 colors per box(8x8).