Re: [Haskell] ANNOUNCE: Harpy -- run-time code generation library

On Fri, 2007-05-11 at 10:04 +0200, Dirk Kleeblatt wrote:
Hi everybody,
we're pleased to announce the first release of Harpy.
Harpy is a library for run-time code generation of x86 machine code. It provides not only a low level interface to code generation operations, but also a convenient domain specific language for machine code fragments, a collection of code generation combinators and a disassembler.
Harpy homepage: http://uebb.cs.tu-berlin.de/harpy/
This looks cool. I was wondering what the need for ensureBufferSize is? Could this by automated? I would have thought that we could just check this when writing out a single instruction. Duncan

Hi Duncan, Duncan Coutts schrieb:
I was wondering what the need for ensureBufferSize is? Could this by automated? I would have thought that we could just check this when writing out a single instruction.
Yes, of course, this would be possible. The only reason is a performance improvement when checking for buffer overflows as seldom as possible. We use Harpy in a just-in-time compilation project for a functional language, an my colleague wants to do this as fast as possible. But one could argue that in a functional language library interface elegance is more important... Kind regards, Dirk
participants (2)
-
Dirk Kleeblatt
-
Duncan Coutts