RFQ/BOM 0 サインイン / 登録する

所在地を選択してください

ユーザーイメージ

Can SQ015L be developed in C?

MCU
9月 18, 2020 by Jaylon 1606

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

答えを書く

返信するにはログインする必要があります。 サインイン | 登録する