News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

C to asm compiler

Started by cman, January 01, 2005, 02:57:09 AM

Previous topic - Next topic

cman

I found a C to asm compiler , complete with source code ( in assembly language ! ). Any one interested can look here:

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

Pretty cool !  :U

hutch--

Thanks for the link and welcome back on board.  :thumbu
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

tenkey

#2
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.
A programming language is low level when its programs require attention to the irrelevant.
Alan Perlis, Epigram #8

Vortex

Hi cman,

Nice to see you here, welcome to the board :U

Targetting the x86 environment, the compiler from the free VC++ toolkit 2003 package is a good one to translate C to asm.

cman

Anybody know where I can get a guide to the 8080 opcodes like the 8086 guide provided with masm32 ? Thanks........ ;)

dev_zero

What about gcc(or MinGW), that's also a good tool to use.. AT&T syntax though..

BD

cman,
Try this for an 8080/Z80 opcode guide:

http://nemesis.lonestar.org/computers/tandy/software/apps/m4/qd/opcodes.html

By the way, BDS C does not compile into assembly language; it actually goes straight from C to a relocatable object file format. So there's really no way to tweak the code that's put out.
   -leor

cman

Quote

By the way, BDS C does not compile into assembly language; it actually goes straight from C to a relocatable object file format.


Yeah , I found that out shortly after my post. The fact that the compiler is implemented in assembler and that I have the source is the thing that is important to me.  :bg Thanks for the information on 80x80 opcodes ( I need this to study the source code ! ) .  :U