From: Frank K. <fbk...@ve...> - 2007-10-13 01:33:30
|
nasm_user wrote: ... > But the type of nasm-0.99.04.tar.bz2 is platform > independent according to the download web page. The source code is platform independent - Nasm "should" compile and run on your Sparc - apparently it did... which I'm pleased to hear! However, Nasm outputs x86 code only. > How can I solve this problem? I'm afraid you'll have to use a Sparc assembler. (G)as, probably - I really have no idea what's available. This assumes you want to run the resulting executable on the Sparc. If you want to develop on the Sparc, and run the resulting executable on x86, Nasm would work, but you'd need an appropriate linker (a "cross-linker"? Sounds horrible! :), or transfer the Nasm-produced .o file to a machine that has one. > I'm looking forward to hearing from you. Well... sorry to have to tell you that Nasm won't produce code that'll run on Sparc. Thanks for the feedback - good to know that you got as far as getting an .o file out of Nasm on it! Best, Frank |