Skip to main content

FromFor some time now, I have searched and read a lot about memory alignment, how it workworks and how to use it. The most relevant article I have find for nowfound so far is this one.

But even with that I still have some questions about it:

  1. Out ofExcept in embedded system, we often have huge chunkchunks of memory in our computercomputers that make memory management a lot less criticcritical, I am completly into optimization, but now, is it really something that can make thea difference if we compare the same program with or without it's memory rearranged and aligned?
  2. IsDoes memory alignment have other advantages? I read somewhere that CPU work better/faster with aligned memory because that take it takes less instructions to process (if one of you have a link for an article/benchmark about it?), in that case, is the difference really significant? IsAre there more advantages than these two?
  3. In the article link, at chapter 5, the author say:

Beware: in C++, classes that look like structs may break this rule! (Whether they do or not depends on how base classes and virtual member functions are implemented, and varies by compiler.) 4. The article talk mostly about structures, but are local variables declaration is also affected by this need?

HaveDo you have any idea of how memory alignment workworks exactly in C++ since it seemseems to have some differences?

This former question contains the word "alignment", but it does not provide any answers to the questions above.

From some time now, I have searched and read a lot about memory alignment, how it work and how to use it. The most relevant article I have find for now is this one.

But even with that I still have some questions about it:

  1. Out of embedded system, we often have huge chunk of memory in our computer that make memory management a lot less critic, I am completly into optimization, but now, is it really something that can make the difference if we compare the same program with or without it's memory rearranged and aligned?
  2. Is memory alignment have other advantages? I read somewhere that CPU work better/faster with aligned memory because that take it less instructions to process (if one of you have a link for an article/benchmark about it?), in that case, is the difference really significant? Is there more advantages than these two?
  3. In the article link, at chapter 5, the author say:

Beware: in C++, classes that look like structs may break this rule! (Whether they do or not depends on how base classes and virtual member functions are implemented, and varies by compiler.) 4. The article talk mostly about structures, but are local variables declaration is also affected by this need?

Have you any idea of how memory alignment work exactly in C++ since it seem to have some differences?

This former question contains the word "alignment", but it does not provide any answers to the questions above.

For some time now, I have searched and read a lot about memory alignment, how it works and how to use it. The most relevant article I have found so far is this one.

But even with that I still have some questions about it:

  1. Except in embedded system, we often have huge chunks of memory in our computers that make memory management a lot less critical, I am completly into optimization, but now, is it really something that can make a difference if we compare the same program with or without it's memory rearranged and aligned?
  2. Does memory alignment have other advantages? I read somewhere that CPU work better/faster with aligned memory because it takes less instructions to process (if one of you have a link for an article/benchmark about it?), in that case, is the difference really significant? Are there more advantages than these two?
  3. In the article link, at chapter 5, the author say:

Beware: in C++, classes that look like structs may break this rule! (Whether they do or not depends on how base classes and virtual member functions are implemented, and varies by compiler.) 4. The article talk mostly about structures, but are local variables declaration also affected by this need?

Do you have any idea of how memory alignment works exactly in C++ since it seems to have some differences?

This former question contains the word "alignment", but it does not provide any answers to the questions above.

replaced http://programmers.stackexchange.com/ with https://softwareengineering.stackexchange.com/
Source Link

From some time now, I have searched and read a lot about memory alignment, how it work and how to use it. The most relevant article I have find for now is this one.

But even with that I still have some questions about it:

  1. Out of embedded system, we often have huge chunk of memory in our computer that make memory management a lot less critic, I am completly into optimization, but now, is it really something that can make the difference if we compare the same program with or without it's memory rearranged and aligned?
  2. Is memory alignment have other advantages? I read somewhere that CPU work better/faster with aligned memory because that take it less instructions to process (if one of you have a link for an article/benchmark about it?), in that case, is the difference really significant? Is there more advantages than these two?
  3. In the article link, at chapter 5, the author say:

Beware: in C++, classes that look like structs may break this rule! (Whether they do or not depends on how base classes and virtual member functions are implemented, and varies by compiler.) 4. The article talk mostly about structures, but are local variables declaration is also affected by this need?

Have you any idea of how memory alignment work exactly in C++ since it seem to have some differences?

This former questionThis former question contains the word "alignment", but it does not provide any answers to the questions above.

From some time now, I have searched and read a lot about memory alignment, how it work and how to use it. The most relevant article I have find for now is this one.

But even with that I still have some questions about it:

  1. Out of embedded system, we often have huge chunk of memory in our computer that make memory management a lot less critic, I am completly into optimization, but now, is it really something that can make the difference if we compare the same program with or without it's memory rearranged and aligned?
  2. Is memory alignment have other advantages? I read somewhere that CPU work better/faster with aligned memory because that take it less instructions to process (if one of you have a link for an article/benchmark about it?), in that case, is the difference really significant? Is there more advantages than these two?
  3. In the article link, at chapter 5, the author say:

Beware: in C++, classes that look like structs may break this rule! (Whether they do or not depends on how base classes and virtual member functions are implemented, and varies by compiler.) 4. The article talk mostly about structures, but are local variables declaration is also affected by this need?

Have you any idea of how memory alignment work exactly in C++ since it seem to have some differences?

This former question contains the word "alignment", but it does not provide any answers to the questions above.

From some time now, I have searched and read a lot about memory alignment, how it work and how to use it. The most relevant article I have find for now is this one.

But even with that I still have some questions about it:

  1. Out of embedded system, we often have huge chunk of memory in our computer that make memory management a lot less critic, I am completly into optimization, but now, is it really something that can make the difference if we compare the same program with or without it's memory rearranged and aligned?
  2. Is memory alignment have other advantages? I read somewhere that CPU work better/faster with aligned memory because that take it less instructions to process (if one of you have a link for an article/benchmark about it?), in that case, is the difference really significant? Is there more advantages than these two?
  3. In the article link, at chapter 5, the author say:

Beware: in C++, classes that look like structs may break this rule! (Whether they do or not depends on how base classes and virtual member functions are implemented, and varies by compiler.) 4. The article talk mostly about structures, but are local variables declaration is also affected by this need?

Have you any idea of how memory alignment work exactly in C++ since it seem to have some differences?

This former question contains the word "alignment", but it does not provide any answers to the questions above.

Tweeted twitter.com/StackProgrammer/status/768406831878311940
added 114 characters in body
Source Link
Kane
  • 371
  • 1
  • 2
  • 9

From some time now, I have searched and read a lot about memory alignment, how it work and how to use it. The most relevant article I have find for now is this one.

But even with that I still have some questions about it:

  1. Out of embedded system, we often have huge chunk of memory in our computer that make memory management a lot less critic, I am completly into optimization, but now, is it really something that can make the difference if we compare the same program with or without it's memory rearranged and aligned?
  2. Is memory alignment have other advantages? I read somewhere that CPU work better/faster with aligned memory because that take it less instructions to process (if one of you have a link for an article/benchmark about it?), in that case, is the difference really significant? Is there more advantages than these two?
  3. In the article link, at chapter 5, the author say:

Beware: in C++, classes that look like structs may break this rule! (Whether they do or not depends on how base classes and virtual member functions are implemented, and varies by compiler.) 4. The article talk mostly about structures, but are local variables declaration is also affected by this need?

Have you any idea of how memory alignment work exactly in C++ since it seem to have some differences?

This former question contains the word "alignment", but it does not provide any answers to the questions above.

From some time now, I have searched and read a lot about memory alignment, how it work and how to use it. The most relevant article I have find for now is this one.

But even with that I still have some questions about it:

  1. Out of embedded system, we often have huge chunk of memory in our computer that make memory management a lot less critic, I am completly into optimization, but now, is it really something that can make the difference if we compare the same program with or without it's memory rearranged and aligned?
  2. Is memory alignment have other advantages? I read somewhere that CPU work better/faster with aligned memory because that take it less instructions to process (if one of you have a link for an article/benchmark about it?), in that case, is the difference really significant? Is there more advantages than these two?
  3. In the article link, at chapter 5, the author say:

Beware: in C++, classes that look like structs may break this rule! (Whether they do or not depends on how base classes and virtual member functions are implemented, and varies by compiler.)

Have you any idea of how memory alignment work exactly in C++ since it seem to have some differences?

This former question contains the word "alignment", but it does not provide any answers to the questions above.

From some time now, I have searched and read a lot about memory alignment, how it work and how to use it. The most relevant article I have find for now is this one.

But even with that I still have some questions about it:

  1. Out of embedded system, we often have huge chunk of memory in our computer that make memory management a lot less critic, I am completly into optimization, but now, is it really something that can make the difference if we compare the same program with or without it's memory rearranged and aligned?
  2. Is memory alignment have other advantages? I read somewhere that CPU work better/faster with aligned memory because that take it less instructions to process (if one of you have a link for an article/benchmark about it?), in that case, is the difference really significant? Is there more advantages than these two?
  3. In the article link, at chapter 5, the author say:

Beware: in C++, classes that look like structs may break this rule! (Whether they do or not depends on how base classes and virtual member functions are implemented, and varies by compiler.) 4. The article talk mostly about structures, but are local variables declaration is also affected by this need?

Have you any idea of how memory alignment work exactly in C++ since it seem to have some differences?

This former question contains the word "alignment", but it does not provide any answers to the questions above.

Question Protected by gnat
deleted 66 characters in body
Source Link
Doc Brown
  • 214k
  • 34
  • 394
  • 603
Loading
added 67 characters in body
Source Link
Doc Brown
  • 214k
  • 34
  • 394
  • 603
Loading
removed the off-topic request for a tool, exaplined why this is no dupe.
Source Link
Doc Brown
  • 214k
  • 34
  • 394
  • 603
Loading
http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts
Source Link
gnat
  • 20.9k
  • 29
  • 115
  • 295
Loading
Source Link
Kane
  • 371
  • 1
  • 2
  • 9
Loading