COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Prev Previous Post   Next Post Next
Old 03-21-2012, 01:14 AM   #1
liteon
Human being with feelings
 
liteon's Avatar
 
Join Date: Apr 2008
Posts: 510
Default ARM port of EEL2

following this thread:
http://forum.cockos.com/showthread.php?t=98337

i did some work on giving this a quick go...

here are the initial results:
https://github.com/neolit123/wdl/commits/eel2-arm

the glue code took most of my time, as i had to first understand what (the hell?) is going on in there. there are some major problems when function calls are made, for example calling something libc from the "virtual machine". my current solution, which is basically - passing an address table around in assembly, may urge the need for some facepalm-like gestures in certain developers.

mind that this a soft-float port to ARM, which will run slow, but on pretty much everything. a VFP version can be possibly branched out in the same build, while FPA and FPE do not make much sense to be implemented in my opinion, since the support is minimal (afaik).

only some basic operators and functions are implemented at this point, but the semantics are in place.

test:

Code:
ret = 3.1415926535897932384626433832795;
ret = (sqr(ret - 3.0) / 2 + 1.5)*ret;
ret = (sqr(ret - 3.0) / 2 + 1.5)*ret;
ret = (sqr(ret - 3.0) / 2 + 1.5)*ret;

// goes something like
ret = 3.14159265358979323
ret = 4.7438810584205937
ret = 14.3291800878725635
ret = 941.0712054248509730
--
liteon is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.