RFQ / BOM 0 Sign In / Register

Select Your Location

user image

Can SQ015L be developed in C?

MCU
September 18, 2020 by Jaylon 1873

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?

All Comments

user image

Trevon Posted on 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 Posted on 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 Posted on September 18, 2020

Rewrite C in the way of assembly.

0

Write an answer

You need to log in to reply. Sign In | Register