On 2024-10-01 10:52:18, Roberto Bucher wrote: > Thanks Michal > > changing the arm-gcc version can probably change the size of the generated > code. No, stack size is per thread, and has nothing to do with code size. Stack size refers to automatic storage variables like
int main(void) {
int a;
char c[32];
}
This will take about 36 bytes of stack memory. Each nested function also uses
some stack space for arguments, return pointers etc.
I don't know how you generate your app, if it's automatic from kconfig+makefile
then stacksize is determined by STACKSIZE makefile variable, which is usually
set by some Kconfig setting with similar name.
--
.-----------------.-------------------.----------------------.-----------------.
| Michal Lyszczek | Embedded C, Linux | Company Address | .-. opensource |
| +48 727 564 419 | Software Engineer | Akacjowa 10a; 55-330 | oo| supporter |
| https://bofc.pl `----.--------------: Brzezinka Sredzka PL | /`'\ & |
| GPG FF1EBFE7E3A974B1 | Bits of Code | NIP: 813 349 58 78 |(\_;/) programer |
`----------------------^--------------^----------------------^-----------------'
signature.asc
Description: PGP signature
