RAM consumption

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RAM consumption

1,217 次查看
dinok
Contributor II

Hi, 
I have a python program that needs RAM of 500 MB.

After converting that code base to MCX, how much RAM memory will it consume in MCX. In general, embedded C consumes way lower memory than python for various reasons.

My data will be 64KB. Is there a widely accepted thumb rule or is there any tool to determine the RAM consumption in MCX ?
An approx. number is enough.

标签 (2)
0 项奖励
回复
2 回复数

1,156 次查看
dinok
Contributor II

Thanks you Hang!

0 项奖励
回复

1,164 次查看
Harry_Zhang
NXP Employee
NXP Employee

Hi @dinok 

Converting a Python program to MCX (Microsoft C/C++) does not directly correlate with the amount of RAM it consumes. The memory consumption in MCX will depend on how the code is written, what libraries are used, and how the data structures are implemented.

However, there isn't a universal thumb rule that can be applied to determine the RAM consumption in MCX because it depends on various factors such as the complexity of the code, the optimization level set during compilation, and the specific compiler being used.

For your specific case, if your data is only 64KB, it's unlikely that the conversion to MCX would significantly increase the RAM consumption.

Hope this will help you.

BR

Hang