FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [March 2009 Threads] Forcing alignment using a unionPosted by Samuel Tardieu on March 31, 2009 By using a union rather than a struct to portably align the heap, it is possible to spare a "long" in memory, which is otherwise wasted.
I have filed an enhancement request with a proposed patch to heap_1.c and heap_2.c.
RE: Forcing alignment using a unionPosted by Richard on April 1, 2009 Good plan - this is what I do in other projects but have shied away from using unions in FreeRTOS because they are against so many peoples coding standards. In this case I think it is fine though as the long is there purely for alignment and never accessed.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|