Topic : Limit of a function

Forum : ST7/STM8

Original Post
Post Information Post
September 13, 2010 - 3:19pm
Guest

Hi,

Is there a size limit of a C function in STM8 compiler? I mean, can a C function use whole the flash area or Ram area?

Thanks&regards

Replies
Post Information Post
+1
0
-1
September 14, 2010 - 8:50am
Raisonance Support Team

Hi Volkan,

There is a limit due to the STM8 architecture: No object (function, array, struct or whatever) can cross a 64KB limit (this is called a "section" in STM8 terminology).
This means that a C function cannot be larger than 64KB.

Regards,