- 20 1月, 2015 3 次提交
-
-
由 Damien George 提交于
See issue #699.
-
由 Damien George 提交于
See issue #699.
-
由 Paul Sokolovsky 提交于
Only modules (not packages) supported now. Source modules can be converted to frozen module structures using tools/make-frozen.py script.
-
- 18 1月, 2015 2 次提交
-
-
由 Paul Sokolovsky 提交于
-
由 Paul Sokolovsky 提交于
-
- 17 1月, 2015 4 次提交
-
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Damien George 提交于
See issue #699.
-
由 Paul Sokolovsky 提交于
This enables proper interfacing with underlying OS - MicroPython doesn't run the main loop, OS does, MicroPython just gets called when some event takes place.
-
- 16 1月, 2015 4 次提交
-
-
由 Damien George 提交于
Saves 24 bytes in bare-arm.
-
由 Paul Sokolovsky 提交于
-
由 Paul Sokolovsky 提交于
-
由 Paul Sokolovsky 提交于
pyexec_friendly_repl_process_char() and friends, useful for ports which integrate into existing cooperative multitasking system. Unlike readline() refactor before, this was implemented in less formal, trial&error process, minor functionality regressions are still known (like soft&hard reset support). So, original loop-based pyexec_friendly_repl() is left intact, specific implementation selectable by config setting.
-
- 15 1月, 2015 3 次提交
-
-
由 Paul Sokolovsky 提交于
We cannot assume that all memory belongs to us - it actually belongs to ESP8266 OS.
-
由 Damien George 提交于
This helps compiler produce smaller code. Saves 124 bytes on stmhal and bare-arm.
-
由 Damien George 提交于
-
- 14 1月, 2015 8 次提交
-
-
由 Damien George 提交于
-
由 Damien George 提交于
Previously was allocating at end of PASS_COMPUTE, and this pass was being run twice, so memory was being allocated twice.
-
由 Damien George 提交于
-
由 Damien George 提交于
Bytecode also needs a pass to compute the stack size. This is because the state size of the bytecode function is encoded as a variable uint, so we must know the value of this uint before we encode it (otherwise the size of the generated code changes from one pass to the next). Having an entire pass for this seems wasteful (in time). Alternative is to allocate fixed space for the state size (would need 3-4 bytes to be general, when 1 byte is usually sufficient) which uses a bit of extra RAM per bytecode function, and makes the code less elegant in places where this uint is encoded/decoded. So, for now, opt for an extra pass.
-
由 Damien George 提交于
Native code has GC-heap pointers in it so it must be scanned. But on unix port memory for native functions is mmap'd, and so it must have explicit code to scan it for root pointers.
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Damien George 提交于
Previously to this patch all constant string/bytes objects were interned by the compiler, and this lead to crashes when the qstr was too long (noticeable now that qstr length storage defaults to 1 byte). With this patch, long string/bytes objects are never interned, and are referenced directly as constant objects within generated code using load_const_obj.
-
- 13 1月, 2015 14 次提交
-
-
由 Damien George 提交于
This allows to directly load a Python object to the Python stack. See issue #722 for background.
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Paul Sokolovsky 提交于
-
由 Paul Sokolovsky 提交于
This enable libc functions, GC, and line-editing function. Also, UART emulation for POSIX systems is added. Emulation build is set as default.
-
由 Paul Sokolovsky 提交于
Unlike bare-arm, which is mostly intended to show raw interpreter size, without library and support code dependencies. This port is intended to be a better base to start new ports, and also will include emulation build to allow debug some aspects of embedded targets on POSIX systems. This initial commit is verbatim copy of bare-arm code.
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Damien George 提交于
Ref issue #699.
-
由 Damien George 提交于
-
由 Damien George 提交于
This config option is for the USB OTG pin, pin A10. This is used on some boards but not others. Eg PYBv3 uses PA10 for LED(2), so it shouldn't be used for OTG ID (actually PA10 is multiplexed on this board, but defaults to LED(2)). Partially addresses issue #1059.
-
- 12 1月, 2015 2 次提交
-
-
由 Damien George 提交于
-
由 Damien George 提交于
-