if I declare some variables, for example:
then are allocated in memory in reverse order, for example in the map file:
There is the possibility to indicate to the linker to allocate them in the expected crescent order? I.e.:
The first variables will be place in a lower addresses in stack.
Instead of letting the compiler place the variable into addresses, you can use the address of one variable as base address and allocate the rest before or after this address.