Jump to content
43oh

Native picoc interpreter on Stellaris Launchpad


Recommended Posts

I was just searching for a arm prot of picoc, and find your message.

 

The picoc source code is straight c code -- there is nothing you need for an ARM "port" other than a cross compiler!

 

Adding basic support for your arm system should be quite simple -- at a minimum you need to provide functions that provide the equivalent of getc, putc, and gets.  These should be simple hooks into the equivalent functions on your specific board.  That will get you the interactive picoc that you saw in my demo.  Going beyond the simple interactive mode is the challenging part, depending of course on how far you want to take things.

 

Look in the platform subdirectory for example platform adaptations.

Link to post
Share on other sites

I'd be grateful if you posted your code here for sharing. Keep us posted.

 

I'm still actively developing and debugging, so it is a bit premature.

 

I plan to submit my changes upstream so that folks will get Stellaris support just by downloading the upstream source.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...