osx - How can I successfully link an assembly program on OS X? -


i learning assembly langauage, , reading book programming ground up. in first programming example

movl $1, %eax # movl $0, %ebx # int $0x80      # 

i can assembly object file. when run ld exit.o exit, following error shows:

ld: warning: -macosx_version_min not specified, assuming 10.8 undefined symbols architecture x86_64:   "start", referenced from:      implicit entry/start main executable ld: symbol(s) not found inferred architecture x86_64 

how can solve problem? running environment macos 10.9

the book you're reading assembly programming linux systems, not mac os x. while they're similar, they're not same, when comes low-level programming — if want follow directions in book, set linux virtual machine , use that.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -