NASMをつかってソースコードhello.asmをコンパイルしたいです。ターミナルで
lang
1$ nasm -f elf -o hello.o hello.asm 2$ ld -s -o hello.o
としたところ
lang
1ld: warning: option -s is obsolete and being ignored 2ld: warning: -arch not specified 3ld: warning: -macosx_version_min not specified, assuming 10.10 4ld: no object files specified for inferred architecture x86_64 5
とでてしまいます。
hello.asmをバイナリファイルhello.oにするところまでは成功しているようなのでどうすればこのファイルを実行できるのかわかりません。アセンブラは初めてなので用語に間違いがあるかもしれませんが回答お願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/01/30 07:47
2015/01/30 14:45