summaryrefslogtreecommitdiffstatshomepage
path: root/mpy-cross/main.c
Commit message (Collapse)AuthorAge
* all: Don't include system errno.h when it's not needed.Damien George2017-07-24
|
* mpy-cross/main: Move lexer constructor to within NLR handler block.Damien George2017-03-14
|
* mpy-cross: Get compiling after recent persistent code refactors.Damien George2016-11-16
|
* mpy-cross: Use binary file translation mode for creating mpy files on windowsstijn2016-07-22
| | | | | | | | This is a fix for https://github.com/micropython/micropython/issues/2209: by default a file created using open() uses text translation mode so writing \n to it will result in the file having \r\n. This is obviously problematic for binary .mpy files, so provide functions for setting the open mode and use binary mode in mpy-cross' main().
* mpy-cross: Add -s option to specify the embedded source filename.Damien George2016-05-23
| | | | | | | | | | .mpy files contain the name of the source file that they were compiled from. This patch adds a way to change this name to an arbitrary string, specified on the command line with the -s option. The default is to use the full name of the input filename. This new -s option is useful to strip off a leading directory name so that mpy-tool.py can freeze packages.
* mpy-cross: Give a more sensible error message when file doesn't exist.Damien George2016-03-02
|
* mpy-cross: Add new component, a cross compiler for MicroPython bytecode.Damien George2016-02-25
This component allows to generate .mpy files (pre compiled bytecode) which can be executed within any MicroPython runtime/VM.