Related articles |
---|
[3 earlier articles] |
Re: basic question about runtime query parsing wyrmwif@tsoft.org (SM Ryan) (2005-07-12) |
Re: basic question about runtime query parsing gneuner2@comcast.net (George Neuner) (2005-07-12) |
Re: basic question about runtime query parsing kers@hpl.hp.com (Chris Dollin) (2005-07-17) |
Re: basic question about runtime query parsing lfinsto1@gwdg.de (Laurence Finston) (2005-07-22) |
Re: basic question about runtime query parsing shahbazc@gmail.com (falcon) (2005-07-22) |
Re: basic question about runtime query parsing kers@hpl.hp.com (Chris Dollin) (2005-07-26) |
Re: basic question about runtime query parsing lfinsto1@gwdg.de (Laurence Finston) (2005-07-28) |
Re: basic question about runtime query parsing kers@hpl.hp.com (Chris Dollin) (2005-07-31) |
Re: basic question about runtime query parsing skandgoe@gwdg.de (Skandinavisches Seminar) (2005-08-01) |
Re: basic question about runtime query parsing marcov@stack.nl (Marco van de Voort) (2005-08-03) |
Re: basic question about runtime query parsing kers@hpl.hp.com (Chris Dollin) (2005-08-03) |
From: | Laurence Finston <lfinsto1@gwdg.de> |
Newsgroups: | comp.compilers |
Date: | 28 Jul 2005 02:31:50 -0400 |
Organization: | GWDG, Goettingen |
References: | 05-07-045 05-07-056 05-07-066 05-07-079 05-07-103 |
Keywords: | linker |
Posted-Date: | 28 Jul 2005 02:31:47 EDT |
On Tue, 26 Jul 2005, Chris Dollin wrote:
> Laurence Finston wrote:
> I don't see as those are particularly difficult to handle; you have to
> be prepared for the dynamically linked code to fail, [...]
My point was that compile-time and link-time errors in the "inner"
code would have to be caught when the "outer" program was running.
It seems to me this would make the actual programming more complicated.
If the generated code could be fairly complex, containing
conditionals and nested function calls, there could easily be
a huge number of possible cases. On the other hand, if the generated
code falls into a few stereotypical patterns, this would be less of a
problem.
> It may be portable enough. If you're prepared to stick to POSIX
> systems.
That seems like a reasonable constraint.
> I only meant to imply "this does not require a modern technology".
Generally speaking, I think one of the advantages of modern systems
is that they permit simpler and more straightforward approaches.
I would expect to find trickier kinds of programming on more limited
systems.
> Run-time code generation eg JIT.
Sorry, I don't know what this is. Please correct me if I'm wrong,
but I would assume that "code generation" means that new code is
created, not that existing code in memory is overwritten while the
program is running. I'm not talking about the kind of modifications
performed by linkers or debuggers. To the best of my knowledge,
on Unix-like systems, the actual machine instructions of a running
program are in read-only memory, so I wouldn't know how to
overwrite them. I suppose there's a way of doing it, though.
Laurence
Return to the
comp.compilers page.
Search the
comp.compilers archives again.