--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/cd4b3e00-0e36-4fa5-bf2b-9ac996198db1n%40googlegroups.com.
On Thu, Feb 24, 2022 at 9:40 AM Wojciech Muła <wojte...@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.
As far as I can tell PCALIGN is implemented for all architectures.