1). how to solve the problem of auto segment to large.?
2)how to dynamically allocate memory in keil? malloc etc. functions are concerned with c. but can we use 'new' operator in keil when programing using C++. is there any other method with c++ in keil to dynammically allocate memory?
Obviously: use less auto data!
Remember that Dynamic Allocation does not magically create more RAM! To use dynamic allocation, you will have to reserve space for the Heap - which means that less space is available for other things.
And dynamic allocation adds its own overheads - so you will actually end up with less available RAM!
ok, let me tell u the root cause, i am using 7 arrays like unsigned char arr[]., each array with more than 60 elements , it shows sdress space overflow. i want to get rid of this....
i am using 89c51 mic. controller.
and please also tell how to use Hdata in keil with c++ language. which file to include etc
i am using 89c51 mic. controller. which of the 4711 derivatives? Get a chip with enough RAM e.g.SiLabs f5xx
and please also tell how to use Hdata in keil with c++ language. which file to include etc C51 does AFAIK not know what HDATA is
View all questions in Keil forum