Related articles |
---|
generic assembly language available? choksheak@yahoo.com (ChokSheak Lau) (2004-07-13) |
Re: generic assembly language available? basile-news@starynkevitch.net (Basile Starynkevitch \[news\]) (2004-07-13) |
Re: generic assembly language available? gopi@sankhya.com (2004-07-14) |
Re: generic assembly language available? choksheak@yahoo.com (ChokSheak Lau) (2004-07-14) |
Re: generic assembly language available? phil@ultimate.com (2004-07-15) |
Re: generic assembly language available? arnold@skeeve.com (2004-07-15) |
Re: generic assembly language available? gergoe@math.bme.hu (2004-07-17) |
Re: generic assembly language available? bear@sonic.net (Ray Dillinger) (2004-08-09) |
Re: generic assembly language available? jacob@jacob.remcomp.fr (jacob navia) (2004-08-23) |
Re: generic assembly language available? brown@cs.bris.ac.uk (Julian Brown) (2004-08-25) |
From: | Ray Dillinger <bear@sonic.net> |
Newsgroups: | comp.compilers |
Date: | 9 Aug 2004 01:29:29 -0400 |
Organization: | Compilers Central |
References: | 04-07-018 04-07-038 04-07-040 |
Keywords: | assembler, comment |
Posted-Date: | 09 Aug 2004 01:29:29 EDT |
ChokSheak Lau wrote:
> I think what you have is the closest to what I am looking for
> (except it is not freeware), anyway, i am not sure whether the
> idea of having a generic low-level language (much much lower
> than C) is possible at all or not.
For what it's worth, there is no problem with using C as a misspelled
assembly language. Since C is semantically similar to a superset of
assemby, you can have just about any feature you'd want in a "generic
assembly language" just by deciding which features of C you will not
use.
I did this a couple of years ago for a LISP compiler that emitted C
code; the code it emitted used goto's and handled its stack
explicitly. It used no C procedure calls or other C-stack based
control structures and it was effectively a generic assembly language.
Bear
[Lots of languages use C as a portable low-level back end. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.