Testing aplc compiled APL programs on Epiphany cores.

Moderator: Dr.BeauWebber

Testing aplc compiled APL programs on Epiphany cores.

Postby Dr.BeauWebber » Thu Jun 13, 2013 12:22 am

Sorry for the long gap since the last post -
it turned out we had some gotchas to overcome before we could compile a generic APL program for the Epiphany.

They both arose from the very crude "Epiphany writes to buffer - wait - host reads buffer" replacement for std-out, that I adopted from the example "hello_world.c", and not from the apl to c translation process, which has worked fine.

Firstly, the placing of the buffer was such that when a multi-line aplc program cleaned up its temporary workings in the heap, it erased the buffer.
So the heap was slightly shrunk, and the buffer placed just above it in external dram_1.

Secondly, the above "wait" before the host read the data was not long enough : simple test statements output correctly, but multi-line aplc output was getting chopped off. Just increasing the delay fixed that - thanks particularly to yspair for tracking down that, and for much other help.

See the next postings for examples of simple APL programs running.
User avatar
Dr.BeauWebber
 
Posts: 114
Joined: Mon Dec 17, 2012 4:01 am
Location: England

Re: Testing aplc compiled APL programs on Epiphany cores.

Postby shr » Sun Aug 04, 2013 10:45 pm

Is this strictly a compiler or will it include an interactive shell?
“At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation” — Igor Sikorsky
shr
 
Posts: 23
Joined: Mon Dec 17, 2012 3:29 am
Location: Lyons, Colorado, USA

Re: Testing aplc compiled APL programs on Epiphany cores.

Postby Dr.BeauWebber » Sat Sep 14, 2013 3:14 am

shr wrote:Is this strictly a compiler or will it include an interactive shell?

Strictly a compiler, though there is little difficulty in combining it with an Apl interpreter running in Linux.
User avatar
Dr.BeauWebber
 
Posts: 114
Joined: Mon Dec 17, 2012 4:01 am
Location: England


Return to APL

Who is online

Users browsing this forum: No registered users and 0 guests

cron