Post by KarmaComaI am doing a Win32 port of CLN using VC++ 2005:http://www.ginac.de/CLN/
The stumbling block is down to a few small files (for Intel Assembly).
\base\digitseq\cl_asm_i386_.cc
movl %edi,%edx // %edi retten
Now, it's only a few thousand lines, but still it would be tedious to
translate it by hand.
Does anyone know of a Gas ==> INTEL format translator for assembly?
Would you not just be more prudent using a Windows port of gcc such as
mingw?, it contains a port of gcc and all the binutils you need for
porting programs thats sources need gcc to be compiled. GAS is not
required at all! the assembler normaly distrubuted alongside gcc is AS
and you get that in mingw in the binutils. Why build a bridge over a
pond when you can just stroll around the edge to your destination? or
you could use gcc and friends under Cygwin.
I realy do not envy the job of having to convert that many lines of
asm, and unless there are SYSCALL specific things done with the asm
that would need to be changed under win32 due to lack of SYSCALL under
Win, i cannot realy see why your not using mingw
But of course, i've only been programming a short time. I could be
entirely off mark with this post
regards and good luck
Hello, I use ATT2Intel.exe to convert gcc asm to Intel,but I got some
parse error message when I try to parse some psudo instruction and
declaration, but it's fine for function implementation in the text
section.
Could anybody help me ? Or try to tell me how to convert following
instructions to INTEL syntax by myself.
Thanks.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; .data
; .align 16
; rounding_sse : .fill 8,2,16
; sse_five : .fill 8,2,5
; rounding_512 : .fill 4,4,512
; tmp_buf : .fill 104,2,0
; zero_cmp : .fill 8,2,0
; top_cmp : .fill 8,2,255
; .align 16
; qp_const_array : .word 0,0,0,0,0,0,0,0
; .word 1,1,1,1,1,1,1,1
; .word 2,2,2,2,2,2,2,2
; .word 3,3,3,3,3,3,3,3
; .word 4,4,4,4,4,4,4,4
; .word 5,5,5,5,5,5,5,5
; .word 6,6,6,6,6,6,6,6
; .word 7,7,7,7,7,7,7,7
; .word 8,8,8,8,8,8,8,8
;
; .align 16
; x264_mmx_32 : .fill 4,2,32
; x264_mmx_8 : .fill 4,2,8
; x264_mmx_4 : .fill 4,2,4
;
; .align 16
; A_32 : .fill 8,2,32
;
; .align 16
; filter_four : .fill 8,2,4