RFQ/BOM 0 로그인 / 등록하다

귀하의 위치를 선택하세요

사용자 이미지

Can SQ015L be developed in C?

MCU
9월 18, 2020 by Jaylon 1607

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

답변 작성

답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다