Search found 21 matches

by igorgatis
Wed Nov 25, 2015 6:49 pm
Forum: Development of MicroPython
Topic: No alloca.h
Replies: 3
Views: 3910

No alloca.h

Turns out the platform I'm porting micropython for does not provide alloca.h. I did some research and best reference I could find was this one ftp://ftp.dante.de/tex-archive/fonts/utilities/ps2mf/alloca.c (the only change I made was to use malloc instead of xmalloc.) Any chance that is going to work?
by igorgatis
Wed Nov 25, 2015 6:25 pm
Forum: Development of MicroPython
Topic: Avoiding assembly code (NLR question)
Replies: 5
Views: 4652

Re: Avoiding assembly code (NLR question)

No, it's of course the opposite - selected platforms have optimized assembly implementation...
That's (of course) what I meant.
by igorgatis
Wed Nov 25, 2015 3:18 pm
Forum: Development of MicroPython
Topic: Avoiding assembly code (NLR question)
Replies: 5
Views: 4652

Re: Avoiding assembly code (NLR question)

They all became empty when MICROPY_NLR_SETJMP is defined. My tool chain was not being able to properly preprocess .S files and thus defining MICROPY_NLR_SETJMP was not doing the trick. Do you think it make sense to modify py.mk to only compile nlr*.S if MICROPY_NLR_SETJMP is not defined? What I mean...
by igorgatis
Wed Nov 25, 2015 1:03 pm
Forum: Development of MicroPython
Topic: Avoiding assembly code (NLR question)
Replies: 5
Views: 4652

Avoiding assembly code (NLR question)

I'm port micropy to a platform which "requires" Keil's ARM toolchain. I'd like to avoid assembly code if possible (let's say I have reasons for that). Apparently, one can acoid assembly code by defining MICROPY_NLR_SETJMP (which will use setjmp/longjmp instead). However, PY_O_BASENAME still lists nl...
by igorgatis
Sat Nov 21, 2015 4:15 pm
Forum: Development of MicroPython
Topic: Compiling with ARMCC instead of GCC
Replies: 1
Views: 5231

Re: Compiling with ARMCC instead of GCC

Did you derived from an existing port (eg bare-arm)? If yes, which one? Did you use --translate_gcc and --translate_gld? Did you publish your code somewhere? I'm targeting arm920t, big endian mode. I used the --translate_gcc plus -Warm,--c99,--gnu according to ARM documentation. I'm having trouble w...
by igorgatis
Fri Nov 20, 2015 5:04 pm
Forum: Development of MicroPython
Topic: Building MP under windows
Replies: 17
Views: 17341

Re: Building MP under windows

Yes, same error messages. I'm using cygwin's gcc 5.2.0.
by igorgatis
Thu Nov 19, 2015 9:41 pm
Forum: Development of MicroPython
Topic: Building MP under windows
Replies: 17
Views: 17341

Re: Building MP under windows

So, the recommendation is to turnoff libffi on windows?

I believe I do have libffi installed on my cygwin environment. Still, I'm getting same error messages.

What's the main consequence of turning libffi off?
by igorgatis
Thu Nov 19, 2015 3:06 pm
Forum: Development of MicroPython
Topic: Failing to build on cygwin: fsync
Replies: 5
Views: 4624

Re: Failing to build on cygwin: fsync

Got it. Just tried using unix port. I set MICROPY_PY_FFI=0 so it ignores the lack of libffi. Now assembler complains: ../py/nlrx86.S: Assembler messages: ../py/nlrx86.S:56: Warning: .type pseudo-op used outside of .def/.endef ignored. ../py/nlrx86.S:56: Error: junk at end of line, first unrecognized...
by igorgatis
Thu Nov 19, 2015 1:47 pm
Forum: Development of MicroPython
Topic: How does non-GC mode work? What are the pros & cons?
Replies: 1
Views: 2307

How does non-GC mode work? What are the pros & cons?

I went through the code but I could not quite understand how non-GC mode (MICROPY_ENABLE_GC = 0) works.

What are the main advantages of enabling/disabling GC?