Changes between Initial Version and Version 1 of Ticket #61976, comment 2


Ignore:
Timestamp:
Jan 8, 2021, 10:42:19 PM (3 years ago)
Author:
mascguy (Christopher Nielsen)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #61976, comment 2

    initial v1  
    66In terms of workarounds, compiler flag `-fno-aligned-allocation` could be used. Unfortunately, that means certain features will cause Mame to crash, due to misaligned memory structures. So that's not really acceptable.
    77
    8 However, at least for Mame 0.227, aligned allocs are only being used in a single source file. So our own patch might be practical for now. But as C++ 2017 features are used more broadly, that could be problematic in the future.
    9 
    10 An option I'm considering is the use of C++ Aspects, which would allow compile-time translation for situations like this. And it's reasonably robust, without the brittle nature of file-specific patches.
    11 
    128Thoughts/comments welcome, as always.