Search found 335 matches

by stijn
Thu Jul 04, 2019 11:32 am
Forum: Other Boards
Topic: Link Time Optimization useful?
Replies: 6
Views: 183

Re: Link Time Optimization useful?

Not exactly, 'issues with GC' is broader than that. For example see the link to the github issue: the issue there was undefined behaviour basically resulting in an assertion failure.
by stijn
Thu Jul 04, 2019 7:21 am
Forum: Other Boards
Topic: Link Time Optimization useful?
Replies: 6
Views: 183

Re: Link Time Optimization useful?

I seem to remember some LTO related issues with the GC, because it makes it hard to track root pointers. This may be fixed though. You should search the github PR and Issue history for LTO The NRF port has LTO on by default and so does the msvc port since it's existence; there was an issue with the...
by stijn
Tue Jul 02, 2019 3:10 pm
Forum: Other Boards
Topic: Link Time Optimization useful?
Replies: 6
Views: 183

Re: Link Time Optimization useful?

It might be, or not. You'd have to measure for your particular case whether the effects (possibly increases code size, possible enhances perfromance, or maybe not) are noticable.
by stijn
Sat Jun 22, 2019 7:04 pm
Forum: Development of MicroPython
Topic: clang formatting file for VSCode
Replies: 2
Views: 79

Re: clang formatting file for VSCode

See https://github.com/micropython/micropython/issues/4223 for example. Conclusion: clang-format cannot format all files constistently so it's not included in the main repository. Most 'standard' code is fine though, so it's usable to e.g. format selected text only.
by stijn
Thu Jun 20, 2019 1:19 pm
Forum: Development of MicroPython
Topic: Memory allocation for lists of different types
Replies: 5
Views: 161

Re: Memory allocation for lists of different types

amvasil wrote:
Thu Jun 20, 2019 12:26 pm
the goal was not to include compiler code into MCU firmware to save code space
yes, makes sense.

Also check py/obj.h for actual implementation of the object representation/packing etc.
by stijn
Thu Jun 20, 2019 11:43 am
Forum: Development of MicroPython
Topic: Memory allocation for lists of different types
Replies: 5
Views: 161

Re: Memory allocation for lists of different types

I compile some Python code using cross compiler and lauch it in a separate thread running MicroPython VM Just wondering, why did you chose this approach? If you have the memory for it, you could also do dimpler and possibly faster things like passing a string containing all code into execute_from l...
by stijn
Thu Jun 20, 2019 8:19 am
Forum: ESP32 boards
Topic: upip micropython-os do no work properly
Replies: 13
Views: 433

Re: upip micropython-os do no work properly

the `os` module in micropython-lib is only designed for the unix port. Specifically it relies on ffi to call the libc implementations of these functions (and you have neither of these things on your ESP32). That's not entirely correct. The ffilib.py file is coded so that when ffi isn't available it...
by stijn
Thu Jun 13, 2019 3:00 pm
Forum: Development of MicroPython
Topic: Can't load external C modules in MP Windows
Replies: 2
Views: 142

Re: Can't load external C modules in MP Windows

You cross-compiled the windows port then, right? C modules for it hasn't been implemented completely, only the bare minimum to make it build.
by stijn
Mon Jun 10, 2019 7:42 am
Forum: ESP32 boards
Topic: Need help making module
Replies: 2
Views: 191

Re: Need help making module

Looks like esp_camera_sensor_get is returning NULL. Which, looking at https://github.com/espressif/esp32-camera/blob/master/driver/include/esp_camera.h, is because you're not initalizing the camera using esp_camera_init. But it always returns "Flipping Failed". Just for information: you're using inc...
by stijn
Sat Jun 08, 2019 11:26 am
Forum: Other Boards
Topic: STM32L072KBU3
Replies: 5
Views: 302

Re: STM32L072KBU3

Ok thanks. Amount of memory should be the least of my concerns as we don't have a lot of requirements as wrt features (both language and std lib). I'm only getting the board ready in 2 to 3 weeks or so, but depending on other hardware I'm working on it might be even longer before I'll actually get t...