-
Notifications
You must be signed in to change notification settings - Fork 223
activate JITTER #531
Comments
Hi guys! After some nights I built netmf with JIT! But I got a some a little problem since ) |
This isn't likely to work. The Jitter code that is there hasn't been touched in over a decade. It only jitted to ARM mode (not thumb, which is required for Cortex-M devices). Further more the JIT requires RAM to put the JIT code into and most micro controller SoCs have a lot smaller RAM size then flash. This is the primary reason the JITTER was essentially abandoned in the past. For the overwhelming majority of devices it ended up running slower as the jitter had to keep re-generating the code as it didn't have enough room to keep much in a cache. Toggling a single GPIO pin in this fashion is generally not recommended, as it hits the largest work load for the interpreter (Method calls) to achieve the smallest result (write a single bit). There's no single correct answer to this as it depends on what you are trying to do. For turning on an LED as a user indicator, the slower path is usually more than enough. For toggling GPIO as part of some sort of custom signaling to a peripheral (such as the Dallas 1-wire ) It is usually best to implement the bit toggling in native code and expose that via custom interop. (This is actually what the 1-wire implementation for NETMF does). |
Would you like to get together to work on the jitter? |
The Jitter seems like can works on the ARM7TDMI processors.... |
Hi everybody!
Some days ago I built it for the STM32F4DISCOVERY board. Cool! For speed testing I wrote little C# program there simply turn on and turn off the LED in infinity loop... And I got about 13 usec it's very slow!
So, I want activate JITTER but dot know how to do it. I tryed define TINYCLR_JITTER in the platform_selector.h but build with the MSBUILD ends with many errors. For ex.:
d:__NETMF\netmf-interpreter-dev\CLR\Include/TinyCLR_Runtime.h:3030:11: error: 'FLASH_SECTOR' does not name a type
const FLASH_SECTOR* m_jitter_firstSector;
and etc.
Could anyone help me to solve any way to activate jit. Thanks
The text was updated successfully, but these errors were encountered: