Newbie Question about free memory, commercial use and uploading programs #3748
Replies: 1 comment
-
Posted at 2014-04-08 by @gfwilliams Hi!
JavaScript values take up more space than compiled code, but for instance if you were to make a big array you'd be able to allocate around 29kB (but you also have to share that space with program code). Flash is accessed just by typing (2) Is this Hardware and the JS Interpreter free? Can it be used commercially (e.g. on boards I would make myself for some commercial projects)? Yes. It's the MPLv2 licence for software and CC-BY-SA for the hardware. Basically you have to say your product contains Espruino, but you can't call your product an 'Espruino' without agreeing with us. It's a bit like Arduino really. (3) Is there a way of creating uploadable programs that cannot be read by a customer? (If I want to provide updates for my own projects to the customers) Customers can always connect via USB/Serial and read out what's on the chip, but you can 'minify' your code. That will generally rename all the variables/functions, remove all whitespace and comments, and often inline code - making it pretty much useless to anyone who'd try and read it. Posted at 2014-04-08 by DrAzzy
Posted at 2014-04-09 by @gfwilliams Just to clear up, @drazzy is right about the 36kB of RAM - but within each 20 byte storage unit there is a 4 byte overhead, so the maximum actual data you could store is just shy of 1800*16 = 28800 bytes. Posted at 2014-04-09 by Alex Is code minified automatically as it is uploaded to the espruino? How can I see how much space my code takes? Posted at 2014-04-09 by @gfwilliams Type in |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-08 by user6861
Hello,
as I read about Espurino I was very interested. I currently develop on Atmel 8Bit but I really love JavaScript.
But I have some questions:
(1) I couldn't find anything about how much RAM and FLASH is available for my programs on the Espurino?!
(2) Is this Hardware and the JS Interpreter free? Can it be used commercially (e.g. on boards I would make myself for some commercial projects)?
(3) Is there a way of creating uploadable programs that cannot be read by a customer? (If I want to provide updates for my own projects to the customers)
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions