Forum Discussion
Altera_Forum
Honored Contributor
21 years agoAlignment of structures
Hello, I know that this is very basic question which is not only relating to Nios. In the web and in the documentation of GCC I didn’t find a satisfactory answer. Will a structure like the...
Altera_Forum
Honored Contributor
21 years agoniosIIuser,
From memory that looks correct, but you can be sure by aligning to a one or two-byte boundary and then examining memory of your struct in the debugger while altering the contents of its members as you step through the code. There is probably a much more elegant way of verifying this for the toolchain experts but the above will get the job done.