RFQ/BOM 0 登入 / 注册

选择您的位置

用户形象

Can SQ015L be developed in C?

MCU
九月 18, 2020 by Jaylon 1551

When I first started contacting the chip, I encountered a simple program under Win10 and prompted that the memory is not enough. Test with an empty program, and the compilation shows that it occupies 30 RAM. If it is written in a little bit, it is larger than 48. The compilation fails. Why?

所有评论

user image

Trevon 发表于 September 18, 2020

This C initialization variable is used and cannot be avoided. This problem does not exist if you initialize variables yourself in assembly.

0
user image

Aiyana 发表于 September 18, 2020

The tool group has been thinking of ways to optimize. At present, if the RAM is not enough with C, it can only be solved by assembly programming.

The assembly of this simple instruction set is not as difficult as imagined. If you use C, you should call as few functions as possible, and it is best to write all of a MAIN.

0
user image

Kaiya 发表于 September 18, 2020

Rewrite C in the way of assembly.

0

写一个答案

您需要登录才能回复。 登入 | 注册