Hrm, that bpaste site will only last a week, so, for posterity, I'll paste 
the script here

#!/bin/bash if [[ "$#" -ne 1 ]]; then echo "No filename supplied, nothing 
to do" exit 0 fi INFILE="$1" echo "======================= In file 
=======================" cat $INFILE echo 
"========================================================" # See assembly 
code generated by compiler echo "============= ASM generated in compilation 
=============" GOOS=linux GOARCH=amd64 go tool compile -S $INFILE echo 
"========================================================" # What's in the 
binary after linking echo "==================== After Linker 
======================" go build -o x.exe $INFILE go tool objdump -s 
main.main x.exe echo 
"========================================================" echo "Cleaning 
up" rm -i x.exe rm -i $(echo "$INFILE"| sed "s/go$/o/") 

-- 
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/59001cff-6572-4833-90d8-a690c2087005o%40googlegroups.com.

Reply via email to