[fpc-pascal] LLVM (again)

Vittorio Giovara vittorio.giovara at gmail.com
Fri Apr 19 15:18:48 CEST 2013

On Fri, Apr 19, 2013 at 2:49 PM, Mark Morgan Lloyd <
markMLl.fpc-pascal at telemetry.co.uk> wrote:

> Sven Barth wrote:
>> Am 19.04.2013 14:05, schrieb Sven Barth:
>>> Am 19.04.2013 14:02, schrieb Reimar Grabowski:
>>>> Hi,
>>>> I have read the discussions about FPC using LLVM and the reasons
>>>> against it (which I fully understand and support). But a friend of mine
>>>> called my attention to this: https://github.com/kripken/**
>>>> emscripten/wiki <https://github.com/kripken/emscripten/wiki>
>>> If you would have read the discussion about LLVM you would know that
>>> emscripten was the reason that it was brought up the last time... ;)
for this particular topic Hedgewars has developed a (simple) Pascal to C
converter that enables the graphical engine to work with webgl/html5 using
the very tool you mentioned. The demo was working fine but then then
something changed in the IDB APIs and so it stopped working (and hasn't yet
been updated) but in case you still have a Firefox 14 you can check it out
here: http://hedgewars.org/hwjs/hwjs.html

The converter is written in Haskell (yay obscure languages) and is tailored
for Hedgewars sources, and only because we use a minimal subset of the
Pascal language we can do so. You can check out the tool here
a small rtl in C
Feel free to use it and improve it if you need, it's all GPL2

That being said, LLVM or asm.js implemented directly in Freepascal would be
awesome :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130419/a5930f86/attachment.html>

More information about the fpc-pascal mailing list