Search found 162 matches

by stijn
Sun Nov 19, 2017 2:20 pm
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 24
Views: 344

Re: Compile error on Android Armv7l with Clang

I tried to build MicroPython on a Raspberry Pi 3 here >> uname -a Linux rpi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux >> clang --version Raspbian clang version 3.5.0-10+rpi1 (tags/RELEASE_350/final) (based on LLVM 3.5.0) Target: arm-unknown-linux-gnueabihf Thread model: posix...
by stijn
Sat Nov 18, 2017 9:59 am
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 24
Views: 344

Re: Compile error on Android Armv7l with Clang

Sorry I missed that part about the other asm statements; the assembly written is likely some gcc dialect. However you don't really need asmarm.c to get a working executable: #define MICROPY_EMIT_ARM (0) in your mpconfigport.h and it will skip what's in asmarm.c
by stijn
Fri Nov 17, 2017 7:18 pm
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 24
Views: 344

Re: Compile error on Android Armv7l with Clang

it's your compiler that's the issue Looks like in this case one could equally well say MicroPython's code is the issue here: it works ok for one compiler but not the other on some code which is (as far as I know) not subject to any real standard. Should this be some valid C99 code which gets reject...
by stijn
Mon Nov 06, 2017 12:58 pm
Forum: Development of MicroPython
Topic: PC-based QT emulator debugger?
Replies: 6
Views: 207

Re: PC-based QT emulator debugger?

Plus you can debug the Unix port's C code using gdb if needed
by stijn
Sat Oct 28, 2017 6:54 am
Forum: Development of MicroPython
Topic: [SOLVED]how to breakup garbage collection (gc.c)
Replies: 3
Views: 128

Re: how to breakup garbage collection (gc.c)

If you want to do that in an accurate way you'll have to measure it. There's nothing inherently time-consuming in gc.c (except possibly the calling of the finaliser since that calls arbitrary user code): operations like VERIFY_MARK_AND_PUSH are just load/comparisions/store. It's just that they get c...
by stijn
Fri Oct 27, 2017 1:54 pm
Forum: Development of MicroPython
Topic: [SOLVED]how to breakup garbage collection (gc.c)
Replies: 3
Views: 128

Re: how to breakup garbage collection (gc.c)

with nothing to actually collect Are you sure? Standard MicroPython allocates one big chunk of memory at the start of execution and then continuously uses that. Once all memory in it has been used and/or fragmented there is a need for gc_collect. Only if you never reach that threshold there is noth...
by stijn
Thu Oct 26, 2017 8:33 am
Forum: Development of MicroPython
Topic: [SOLVED]Macros in mpconfigport.h have ZERO documentation
Replies: 2
Views: 101

Re: Macros in mpconfigport.h have ZERO documentation

There's no need to duplicate that for each and every port. Just look them up in mpfonfig.h (if that takes a lot of time you are using a crappy text editor and cannot really blame the code for it), where pretty much all of them have one or more documentation. If that is not sufficient paste the macro...
by stijn
Thu Oct 26, 2017 8:27 am
Forum: Development of MicroPython
Topic: [SOLVED]what is sequence of calls to .make_new
Replies: 1
Views: 93

Re: what is sequence of calls to .make_new

pyb.LED has different implementations depending on the port so that varies a bit but in general the call stack up to the call of the function pointed to by make_new (i.e. call to self->make_new(self, n_args, n_kw, args) in objtype.c) is the same and looks like this when creating a new obj from the R...
by stijn
Mon Oct 23, 2017 7:21 am
Forum: General Discussion and Questions
Topic: where have the edit icons gone
Replies: 2
Views: 94

Re: where have the edit icons gone

You already posted this last week in viewtopic.php?f=2&t=3910 ?
by stijn
Mon Oct 16, 2017 7:57 am
Forum: General Discussion and Questions
Topic: This forum's behaviour has changed for the worse.
Replies: 9
Views: 439

Re: This forum's behaviour has changed for the worse.

Not really much wrong with phpBB but the change they made now is horrid. (I'm not 100% sure it is just phpBB though, or rather the skin/style used). Anyway I'm fairly sure we are not the only ones complaining though so I guess it will be gone again in the next update.