On Thu, Feb 24, 2022 at 9:40 AM Wojciech Muła <wojtek.m...@gmail.com> wrote: > > I'm writing an implementation in x86 assembler and I need to force a certain > alignment of blocks of code (as it affects performance). I found that there's > PCALIGN directive, but it's only available for the PPC architecture. It does > not work for x86. > > Is there any easy way to achieve this for x86? If I had one loop, it won't be > a problem --- I'd just put a few `BYTE $0x90` and move on. The problem is my > code is huge, partially autogenerated with few variants. > > Any hints?
As far as I can tell PCALIGN is implemented for all architectures. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWv%3Dvu3R706TfLCrbqRGfD2dtw%2Bray9LU28YMRYX6WYsg%40mail.gmail.com.