On Mon, Nov 7, 2016 at 8:58 PM,  <aindu...@gmail.com> wrote:
> I've been trying out Go's assembler, but I can't seem to get the most basic
> program to compile. Following the example on https://goroutines.com/asm,
> which introduces go's assembler through an example of an add function on
> amd64, I get the compile error:
>
> # github.com/smasher164/asmtest
> ../../work/src/github.com/smasher164/asmtest/add_amd64.s:7: unexpected EOF
> asm: assembly of ../../work/src/github.com/smasher164/asmtest/add_amd64.s
> failed

I can recreate that error if I save my copy of the assembler file
without a final newline.  Make sure there is a newline after RET.

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.

Reply via email to