Joseph Hickey

Results 69 comments of Joseph Hickey

Keep in mind the intent of the aliasing rules here. If there were no rules, then any data "write" could change the value of any other data. This means that...

> Minimal example on godbolt where icc is available: https://godbolt.org/z/183oKP483 icc considers this practice to violate aliasing rules. gcc and clang do not report it as violating the rules. I...

Note that the message generated by gcc is this: dereferencing type-punned pointer might break strict-aliasing rules With the operative word here being "might". They are just flagging something that _could_...

> The problem with relying on code doing what has been observed, which violates rules, is that the behavior can be legally changed by future compiler versions. I don't think...

Thanks for identifying this and pointing it out. This should be fixed.

I concur that the TLM stats reported for pool usage is not great. They are hard to interpret and the common problems (i.e. fragmentation) are not apparent by looking at...

Don't use `pthread_create`. Use `CFE_ES_CreateChildTask` to create child tasks in your app.

They don't need it .... The "littleEndian" attribute can only be applied to fields which are a multiple of 8 bits. Otherwise it is ambiguous and invalid. All fields in...

> Should I assume any structure that has a bitfield in it, then the whole structure should be treated as big endian? Majority of the fields on my process are...