I have a file named b1 that contains assembly language. I am trying to execute the file on OSX using
I get the following error:
-bash: ./b1: cannot execute binary file
I've looked at other similar questions, but to no avail. I'm definitely using a 64 bit architecture.
Here are output of relevant info:
$ file b1 b1: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped $ uname -a Darwin Anthonys-MacBook-Pro.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
as b1 which ended up terminating with:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as: fatal error in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/x86_64/as