help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] error building with jit


From: Stephen Compall
Subject: [Help-smalltalk] error building with jit
Date: Mon, 16 Oct 2006 19:19:57 -0500
User-agent: Thunderbird 1.5.0.7 (Macintosh/20060909)

I decided to try out the JIT (./configure --enable-jit
--enable-gtk=no).  I don't have a separate install of lightning, but
figured the included lightning would suffice.

As I am on i686 GNU/Linux, I get the i386 headers for lightning, but
get this error while making:

In file included from ../lightning/lightning.h:49,
                 from xlat.c:35:
../lightning/funcs.h: In function 'jit_flush_code':
../lightning/funcs.h:77: error: expected expression before 'else'
... some cascades ...

Here is the surrounding code with comments stripped:

  if (page >= prev_page && page + length <= prev_page + prev_length)
    return;

  mprotect ((void *) page, length, PROT_READ | PROT_WRITE | PROT_EXEC);

  else if (page >= prev_page && page <= prev_page + prev_length)
    prev_length = page + length - prev_page;

So, where does this mprotect call fit in the scheme of things?

-- 
Stephen Compall
http://scompall.nocandysw.com/blog




reply via email to

[Prev in Thread] Current Thread [Next in Thread]