No alloca.h

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
igorgatis
Posts: 21
Joined: Thu Nov 19, 2015 1:10 pm

No alloca.h

Post by igorgatis » Wed Nov 25, 2015 6:49 pm

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/ut ... f/alloca.c

(the only change I made was to use malloc instead of xmalloc.)

Any chance that is going to work?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: No alloca.h

Post by dhylands » Wed Nov 25, 2015 9:05 pm

According to: http://www.delorie.com/djgpp/doc/libc/ (more specifically http://www.delorie.com/djgpp/doc/libc/libc_44.html) alloca is defined in stdlib.h

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: No alloca.h

Post by pfalcon » Wed Nov 25, 2015 9:26 pm

Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

igorgatis
Posts: 21
Joined: Thu Nov 19, 2015 1:10 pm

Re: No alloca.h

Post by igorgatis » Wed Nov 25, 2015 11:10 pm

Great. Thanks a lot.

Post Reply