Page 1 of 1
x86-64 Assembler
Posted: Tue Dec 24, 2002 8:19 am
by pskyboy
Hey Guys
Does anyone know of an assembler that will assemble for the x86-64 architecture. It would be really good if it took NASM syntax but thats probably hoping for to much.
Peter
Re:x86-64 Assembler
Posted: Tue Dec 24, 2002 10:18 am
by DarylD
I use gas myself for all my assembler, basically because I use gcc for compilation.
That supports x86-64.
Re:x86-64 Assembler
Posted: Tue Dec 24, 2002 10:41 am
by pskyboy
Yeah haven't quite got used to the gas syntax yet. Is there any utility that will convert nasm based code to gas based code?
Peter
Re:x86-64 Assembler
Posted: Tue Dec 24, 2002 12:17 pm
by jrfritz
GCC 3 has intel syntax...but it doesn't use db for bytes...it uses understandible things like .byte and .word.
Example: .word some_word
As for going without the %'s and all that weird stuff, use this macro in GCC:
#define inasm(s) asm( ".intel_syntax no_prefix" ); asm(s);asm(".att_syntax prefix" );
Re:x86-64 Assembler
Posted: Wed Dec 25, 2002 9:16 pm
by K.J.
Re:x86-64 Assembler
Posted: Thu Dec 26, 2002 5:35 am
by pskyboy
Excellent
Thanks for that k.j. That now means i can get on and develop my 64 bit kernel.
Peter
Re:x86-64 Assembler
Posted: Thu Dec 26, 2002 5:56 am
by pskyboy
K.J have you got it to compile as i can't get it to compile at the moment
Peter
Re:x86-64 Assembler
Posted: Thu Dec 26, 2002 8:29 pm
by jrfritz
I'm about to install the RPM and test it.
Re:x86-64 Assembler
Posted: Fri Dec 27, 2002 2:09 am
by pskyboy
I got the RPM to install under my Linux install but i couldn't fin d where it had put the executable. If you could tell me where it goes after its installed that would be great
Cheers
Peter
Re:x86-64 Assembler
Posted: Fri Dec 27, 2002 10:14 am
by jrfritz
Opps...I forgot to install it...i'll install it later...maybe Sunday.