What is the maximum number of definitions allowed assigned to one inline C var #1179
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 1 comment
-
Posted at 2018-08-28 by @gfwilliams I'm not quite sure what you intend? You want to just define an array? If so, you just define that array in your Inline C code:
I don't believe there are limitations on the number of items you can have in Inline C, but each one uses a JsVar to store a reference to the function, so you'll quickly use up your device's memory. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-08-26 by Robin
Sun 2018.08.26
As it appears that basic math trig functions are not available using inline C either,
http://forum.espruino.com/comments/14387611/
I am attempting to build SOH CAH TOA in static lookup tables. With the limitations on array handling
http://www.espruino.com/InlineC
I wondering if hard coding each value using a smart name for lookup might be possible. Estimating around 320 unique definitions. Might this be possible without choking the inline C compiler?
Is there an online reference regarding compiler limitations?
Beta Was this translation helpful? Give feedback.
All reactions