It's not clear what your question has to do with the Go language. Are you
asking how to control the alignment of the code produced by the Go
compiler? Some more context would probably help the community answer your
question.

On Thu, Feb 24, 2022 at 9:40 AM Wojciech Muła <wojtek.m...@gmail.com> wrote:

>
> Hi all! That's my first post to the group.
>
> 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?
>
> regards
> w.
>
> --
> 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/cd4b3e00-0e36-4fa5-bf2b-9ac996198db1n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/cd4b3e00-0e36-4fa5-bf2b-9ac996198db1n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

-- 
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/CABx2%3DD_kbYghdyAtfE675q6dAFVpdqwA8rHXqiMY0XxOLMkYoQ%40mail.gmail.com.

Reply via email to