From: | "Tony" <nospam@myisp.net> |
Newsgroups: | comp.compilers |
Date: | Sat, 22 Jan 2011 07:38:33 -0600 |
Organization: | TeraNews.com |
References: | 11-01-082 11-01-088 11-01-092 |
Keywords: | code, C |
Posted-Date: | 22 Jan 2011 21:01:32 EST |
> Steven Shaw wrote:
> [C can be a perfectly reasonable intermediate language so long as you
> don't expect the C code to be readable by humans or to look anything
> like the source code. -John]
The key word being the very subjective "reasonable"? If one wanted a
replacement language for C, but with a completely different type
system, would C be a "reasonable" IL? It seems undoable for efficiency
reasons. I'm not sure how one would go about implementing a
language's type system in C and still get high performance. That is,
performance equivalent to C.
[C's type system is intended to be pretty close to what the hardware
provides. You want a different type system, you can encode it using
C's types. Think if it as a sort of high level assembler. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.