handling 64bit number on 32 bit architecture

DSS rajivkumarsingla@gmail.com
Tue Dec 22 10:15:00 GMT 2009


Hi,

I have a problem in dealing with 64 bit no. on  a 32 bit arch.

What i want is that when i am loading a 64 bit no. to a variable in C with
its type as 'long long' type. It should place that number on a different
section. From there loading the address of that section to a register, it
should load that no. to the respective registers.  Like this

main:
	mov	        ip, sp
	stmfd	sp!, {r4, fp, ip, lr, pc}
	sub	        fp, ip, #4
	sub	        sp, sp, #8
	adr	        r3, .L3
	ldmia	        r3, {r3-r4}
	str	        r3, [fp, #-24]
	str	        r4, [fp, #-20]
	sub	        sp, fp, #16
	ldmfd	sp, {r4, fp, sp, pc}
.L4:
	.align	        2
.L3:
	.word	-1454986011
	.word	10

What macros i need to look for this. I tried by putting many macros but not
able to do. Please help me in ths.

-- 
View this message in context: http://old.nabble.com/handling-64bit-number-on-32-bit-architecture-tp26884489p26884489.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list