[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


memory not aligned?

Posted on 2004-11-07
Medium Priority
Last Modified: 2008-02-26
Dear all,

Here is my code:

#define _alignedMem$ 16
__declspec(naked) void sseFunc(
 ... params ...

__m128 _alignedMem;
  push   ebp
  mov   ebp, esp
  and   esp, -16  ; aligned to 16-byte boundary
  sub   esp, __LOCAL_SIZE; should be 16 (there is only one variable, i.e.  _alignedMem)


__asm movqda mmx1, DWORD PTR[ebp+_alignedMem$ ] ; <-- error here! Not aligned?

What is wrong with the code and why?
THank you.

Question by:hengck23
LVL 11

Accepted Solution

dimitry earned 2000 total points
ID: 12518031
I think you are "aligning" ESP but not EBP that you are using for access...
LVL 61

Expert Comment

ID: 15810603
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
    Accept: dimitry {http:#12518031}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Will the future of mobile app development include the same trends as those most relevant today? Find out by checking out the 7 trends of the future.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question