This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Array length changeable during Run - Time

Hi everyone

Does someone know how to change the length
of on array during the run time execution?
I mean how can I request memory to use
it for a array? Is there somthing like
malloc()?

Thanks!

Parents
  • The small model benchmarks for malloc and free may be found at: http://www.keil.com/benchmks/c51_alloc.asp.

    The benchmark results are from the Knuth memory allocation test as described in Fundamental Algorithms, Section 2.5 Dynamic Storage Allocation. In other words, the results in the benchmark are likely to be close to what you see in your implementation.

    Note that the free() function in the Keil libraries merges adjacent free blocks. This is NOT true of most malloc/free implementations.

    Jon

Reply
  • The small model benchmarks for malloc and free may be found at: http://www.keil.com/benchmks/c51_alloc.asp.

    The benchmark results are from the Knuth memory allocation test as described in Fundamental Algorithms, Section 2.5 Dynamic Storage Allocation. In other words, the results in the benchmark are likely to be close to what you see in your implementation.

    Note that the free() function in the Keil libraries merges adjacent free blocks. This is NOT true of most malloc/free implementations.

    Jon

Children
No data