daaergo.blogg.se

Visual studio compiler optimization
Visual studio compiler optimization




One of the ways to reduce the memory being consumed is optimization of data structures we have told you about in Lesson 23.Īnother way of saving memory is to use more saving data types. The operation of transferring data between the memory and microprocessor (cache) is not very cheap. Although the 64-bit program code is faster, extraction of larger data amounts from memory might cancel all the advantages and even reduce performance. So it is unreasonable to strike against the growth of memory consumption we have described - it is easier to add just a bit more memory.īut there is a disadvantage of this growth. In relative units, it means that the program takes three times less memory available on a 64-bit system. It is quite okay if a program takes 300 Mbytes on a 32-bit system with 2 Gbytes of memory and 400 Mbytes on a 64-bit system with 8 Gbytes of memory. We can often tolerate the growth of main memory consumption - the advantage of 64-bit systems is that very large amount of memory available to user.

  • changes of the rules of data alignment in structures.
  • larger memory amounts to store some objects, for example pointers.
  • The growth of memory consumption is determined by the following factors: This increase often stays unnoticed, but sometimes memory consumption may grow twice. When a program is compiled in the 64-bit mode, it starts consuming more memory than its 32-bit version.

    visual studio compiler optimization

    Reducing amounts of memory being consumed

  • Using memsize-types in address arithmetic.
  • visual studio compiler optimization

    Reducing amounts of memory being consumed.






    Visual studio compiler optimization