WINCE 7 ARM compiler - wrong code with aligned array - by MitkoRadev

Status : 


Sign in
to vote
ID 785936 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 4/30/2013 9:01:18 AM
Access Restriction Public


This is NOT a Visual Studio 2012 BUG, but I cannot find a better category. Please ignore it if you think it is unrelevant.

This is a bug in the ARM compiler for ARM from Platform Builder for Windows Embedded Compact 7, compiler version string: 
Microsoft (R) C/C++ Optimizing Compiler Version 15.01.50304.03 for ARM

Passing elements of a __declspec( align( 16 ) ) array of structures as function parameters is not correct, in /Ox compilation data is passed in registers in wrong order, in /Od compilation the code the code is even more incorrect.

It seems the BUG can be worked around by using a temporary pointer to the alligned array.
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:30 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from:
Posted by Microsoft on 5/8/2013 at 8:46 PM
we will fix it in future release.
thank you for your feedback.
Posted by Microsoft on 4/30/2013 at 9:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(