OpenCores
no use no use 1/1 no use no use
malloc in the openrisc complier
by Unknown on Feb 6, 2004
Not available!
Hi all,

Does the openrisc complier support the malloc, realloc .. functions?
If it doesnot, how can I handle the program that needs malloc, realloc..
functions? Anyone has the idea? Thank you very much.

Best Regards,


Stephen
malloc in the openrisc complier
by Unknown on Feb 6, 2004
Not available!
Hi Stephen, Many functions are not directly supported by the compiler, for example malloc, realloc, ... This functions are supported by the Operating System. You cannot use this functions without using an OS. I have seen you were asking in another message for printf. This function is not directly supported by the compiler, you need another one of this things to use that kind of functions: 1- The stdio library ported for your architecture (I think that it is not yet ported for openrisc) 2- Another library that have support for that kind of functions, for example newlib. But I think that isn't yet avalibale for openrisc. 3- An operating system that have similar instructions for what you need, like eCos or uclinux, that are avalible for using with openrisc architecture. I recommend you to try with the third option, it will resolve your problems with both malloc and printf. In the OpenRisc CVS you can get both eCos or uclinux. Regards, Pablo Huerta whli_interqos@yahoo.com.hk wrote:
Hi all, Does the openrisc complier support the malloc, realloc .. functions? If it doesnot, how can I handle the program that needs malloc, realloc.. functions? Anyone has the idea? Thank you very much. Best Regards, Stephen _______________________________________________ http://www.opencores.org/mailman/listinfo/openrisc



no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.