Remote query for structure layout

David Blaikie dblaikie@gmail.com
Tue Mar 30 22:44:17 GMT 2021


On Tue, Mar 30, 2021 at 3:38 PM Simon Marchi <simon.marchi@polymtl.ca>
wrote:

> On 2021-03-30 6:03 p.m., David Blaikie wrote:>
> > Perhaps - though I was thinking actually hardcoded in the compiler -
> since it's the one that chooses/knows the layout, it's not (presumably)
> using any code it reads from a header, etc, in user code to define the
> layout.
>
> Is it really the compiler that decides this layout?  My understanding is
> that this is decided by the FreeRTOS code.
>
> Having used FreeRTOS a few times, my understanding is that it's
> basically a big library, the compiler doesn't really know about it.  For
> all it knows, you are compiling a bare metal program that happens to
> implement a task system.
>

Ah, sorry, my misunderstanding then - knew nothing about it. Sorry about
that.

If it's "just" some user-code, is there a variable of the desired type
being declared around the function call?


More information about the Gdb mailing list