From: Youngman, J. <jam...@hp...> - 2010-10-06 15:08:58
|
According to section 6.8 of the NASM Manual, IA64 is supported. 6.8 CPU: Defining CPU Dependencies The CPU directive restricts assembly to those instructions which are available on the specified CPU. Options are: * CPU IA64 IA64 CPU (in x86 mode) instruction set Do I need to use a newer version of nasm? Thanks Jim -----Original Message----- From: Frank Kotler [mailto:fbk...@zy...] Sent: Tuesday, October 05, 2010 5:05 PM To: Youngman, James Cc: nas...@li... Subject: Re: [Nasm-users] Unable to generate IA64 object file Youngman, James wrote: > Does anyone see what is wrong with this. This is using version 2.04. > > > > COMPILING: ../../examples/cpuidExample/cpuid.asm > > nasm -I../../src/ -I../../examples/ -f elf64 -DCPU=IA64 -o > objs/examples/cpuidExample/cpuid.o ../../examples/cpuidExample/cpuid.asm > > LINKING: target/examples/cpuidExample > > /usr/lib/gcc/ia64-suse-linux/4.1.2/../../../../ia64-suse-linux/bin/ld: > warning: i386:x86-64 architecture of input file > `objs/examples/cpuidExample/cpuid.o' is incompatible with ia64-elf64 output Hi Jim, Thanks for the message I could approve! I don't know much about 64-bit code, but doesn't "IA64" refer to Itanium? Nasm won't do Itanium, only x86-64. I fear you won't be able to use it. :( On my antique 32-bit system, I can list targets accepted by ld with "objdump -i" (go figure!). Possible your ld will handle x86-64 if asked properly? Best, Frank |