Problem in Supporting Long Long Data Type.

Ian Lance Taylor iant@google.com
Sun Feb 28 17:46:00 GMT 2010


Prashant Purohit <prashantpurohit025@gmail.com> writes:

> .L4:
>         .align  2
> .L3:
>         .word   2101332489
>         .word   287445236
>         .size   main, .-main
>         .ident  "GCC: (GNU) 4.3.0"
> ******************************
>
> But my problem is I am not getting the .L4 and .L3 part of the assembly in
> my case where the number is divided into two different .word type.
>
> My target assembly generates following instructions instead :
>
> mov	r3,#2101332489
> str	r3,[fp, #-20]
> mov	r3,#287445236
>
> I have written arm instructions only for the sake of understanding.
>
> How can I get the above .L3 and .L4 created and generated in assembly file
> of my target.


Look at LEGITIMATE_CONSTANT_P.

Ian



More information about the Gcc-help mailing list