Generating code linked with libstdc++ for a target system without OS
EVANDRO LUIZ HAUENSTEIN
OP9693@siemens.com.br
Fri Feb 22 05:40:00 GMT 2002
Hi
Im using g++ (PowerPC version provided by Montavista - ppc_8xx-g++,
ppc_8xx-ld, --library stdc++) to generate code for a MPC860 target
system.
The target system is running without OS and I upload the programs
(srec format) with a BOOT LOADER via RS232 port.
The generated code works fine when I do not utilize Dynamic
allocation of objects.
Static: (works fine)
CBlink MyBlink(500,500);
MyBlink.BlinkNow();
Dynamic: (crashes)
CBlink* pMyBlink;
pMyBlink = new CBlink(500,500);
pMyBlink->BlinkNow();
Im not sure why the target crashes... Maybe I have to implement some
routines in my target like malloc and etc...
Anyone tryed to do this?
[ ]´s
Evandro Luiz Hauenstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20020222/7a6b83ce/attachment.htm>
More information about the Libstdc++
mailing list