On Thu, Mar 15, 2018 at 8:11 AM, T L <tapir....@gmail.com> wrote: > > On Thursday, March 15, 2018 at 10:57:50 AM UTC-4, Jan Mercl wrote: >> >> >> On Thu, Mar 15, 2018 at 3:29 PM T L <tapi...@gmail.com> wrote: >> >> > I mean "always makes 64-bit words 64-bit aligned on i386 OSes." >> >> AFAIK, that's not the case, ie. not always. >> >> -- >> >> -j > > > But it looks the results from Go playground (which is a 32-bit OS env) > show all 64-bit words are 64-bit aligned on 32-bit OS. > > https://play.golang.org/p/J2TT4yskRQT
The playground currently runs in the amd64p32 environment, which is to say with a 64-bit CPU with 32-bit pointers. This is done in order to use NativeClient as a sandbox technology. Try running your program on real hardware with GOARCH=386. 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. For more options, visit https://groups.google.com/d/optout.