Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there some documentation on how to run code from a string in C. I guess I can setup a getter for a buffer and then call fxParseScript? Is that all?


FWIW - we usually don't parse scripts on the MCU because that takes time and memory. Instead, we compile on the development machine using xsc and link using xsl. This leaves more memory free for scripts to use for data, and allows scripts to start running almost instantly.


I understand, though I meant to use xs engine separately on bigger platforms, where this is not an issue.


Ah, I found some nice example in fx_agent_start_aux() function. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: