Topic : Allocation of variables in fixed order

Forum : ARM

Original Post
Post Information Post
July 1, 2008 - 5:14pm
Guest

Hello to All. I need to allocate variables in RAM of a STM32F103 with a fixed order. How can I do?

Replies
Post Information Post
+1
0
-1
July 1, 2008 - 11:07pm
Guest

francob1 wrote:
I need to allocate variables in RAM of a STM32F103 with a fixed order.

Why do you need to do that?

If you explain what you're actually trying to achieve, people may well be able to suggest better approaches and/or avoid making suggestions that conflict with the true requirement...

+1
0
-1
July 4, 2008 - 10:20am
Guest

I don't know whether GCC modifies the order of the allocation. However, if you really need to be sure about the structure of the allocation, the best would be to encapsulate all your variables within a structure.

+1
0
-1
July 4, 2008 - 2:18pm
Guest

Francis Lamotte wrote:
if you really need to...

Given that it's been 3 days with no repsonse at all from the OP, it doesn't seem that it was really that important... :rolleyes: