Re: Remote query for structure layout

David Blaikie via Gdb
2021-03-30T22:44:33Z

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?