kayws426 / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

Looks like BUILTIN_MINI_STDLIB configuration is broken #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello!

Now I use latest svn code.
I have some errors during compilation if BUILTIN_MINI_STDLIB is defined.
For example:
clibrary.c:62: error: conflicting types for 'CStdOut'
picoc.h:294: error: previous declaration of 'CStdOut' was here
In  clibrary.c
...
struct OutputStream CStdOut;
...
In picoc.h
...
extern IOFILE *CStdOut;
...

Thanks,
Sergey

Original issue reported on code.google.com by sdanil...@gmail.com on 3 Jul 2010 at 4:34

GoogleCodeExporter commented 9 years ago
Hi Sergey, I suggest not using the mini stdlib unless you're compiling for a 
very small embedded processor like the STM32, AT91SAM7 or LPC.

On larger computers the cstdlib is much larger and more complete.

On the other hand if you want to use a small processor I've fixed the problems 
in compiling with BUILTIN_MINI_STDLIB in revision #455.

Original comment by zik.sale...@gmail.com on 3 Jul 2010 at 5:02

GoogleCodeExporter commented 9 years ago
Thanks for fix!
I use AT91SAM7X256 chip, so code size is very important for me.
Sergey.

Original comment by sdanil...@gmail.com on 3 Jul 2010 at 5:25