-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for double / long double #276
Comments
@mateoconlechuga Hi, I was trying to compile
Is there anything that I can clutch to make these functions work? Is there is still any possibility that |
Reminder that you only have 4 KB of stack and around 60 KB of heap. You are nowhere near able to get something like that running on this platform :P |
@adriweb yeah, I know, however, it will be really interesting if this indeed will work (I believe wasm3 runtime itself has only ~10K heap footprint, the only thing which really concerns me is a stack usage (which all around the place). But if it will be capable of outputting a few numbers from Fibonacci sequence, then I see this as an absolute win 🤣 |
Well, that's better than I expected, but we'll see. |
long long wouldn't be as hard as adding proper double support, but still would be a pain. Probably not something that is going to make it in the observable future, at least not in the next couple months (years?), so who knows. |
Not going to mess with doubles (for now), but I've been working on optimizing a lot of integer math functions and adding |
Wasm3 can be compiled without float/double support, i.e. UPD: Let me know if I can help here, I'd really love to see Wasm running on TI-84 Plus CE. The TI website says it's:
With such specs, it's more than capable of running Wasm3. |
The device actually has 256KB of RAM, but the regions of memory that are free to use without stepping on anything else are limited, fractured, and potentially dynamic. The heap currently occupies the largest available contiguous section of RAM that should always be free to use. |
Ideally you could overwrite the OS and run whatever you wanted; but it would no longer be a "calculator" in anything but the physical appearance -- which would still be pretty awesome :) |
Ok, in any case 60K should be more than enough. Wasm3 is running in some devices with 16K RAM total, i.e. nRF51 series. It was also running (to some extent) on 8bit AVR ATmega1284. |
@vshymanskyy In other news, 64 bit support is almost complete and wasm3 is able to do fib(24) on the calculator: The binary is about 33K compressed (compression saves 63%). |
Done with #354 being merged |
A lot of the recent activity on this issue kind of hijacked it, making it about 64-bit int support. But the original issue text and title are about 64-bit (or higher) float support, which has not been implemented yet. So I'm reopening this issue. |
Currently doubles are aliased to floats. This could probably be changed in the future if enough people care, as well as adding support for long doubles.
The text was updated successfully, but these errors were encountered: