Yeah, I have tried this before, but it looks like djgpp can't preprocess(?) *.S files, since errors are same and irrelevant to value of MICROPY_NLR_SETJMP. So I have just comment this file.dhylands wrote:
Code: Select all
#define MICROPY_NLR_SETJMP (1)
After two hours I successfully built micropython for dos, and test it on my board with AMD Geode and last FreeDos. On a way to build this I have found some «errors» in master of micropython (e.g. different types of arguments in header and source). I will summarize they later and post here, maybe some of them is just my bad understanding. Also there is some issue with build-djgpp(?) since there two directories with djgpp binaries: one contain long names, another short. Second one does not include all binaries (e.g. size) so this should be fixed or I missed something again.
Anyway, build is done and it is time to extend it via dos-specific modules, so where can I read about micropython objects and functions for c↔python bridge? Or source files is enough to realize?
By the way, it looks like there is only "sys" module. How to check what I have?
Hm, can't attach file since it is too large (317Kb-zipped)