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?
1) malloc is wisely outlawed by MISRA and IMHO blatantly violating MISRA is fools errand 2) using malloc in C51 is ridiculous, the underlying processor is singularly unsuitable for this. 3) is sounds as if you need to switch to an ARM
is there no other way to dynamically allocate memory in c51.my project is based on c51.
You can always write your own code, optimizing it for your specific requirement.