Hi All,
For the below code (test.c)
int foo()
{
printf("Hello World");
}
On linux :
ccpc -mcpu=e6500 -mno-altivec -mabi=no-altivec -D_WRS_HARDWARE_FP
-mabi=elfv2 -mcmodel=med -mhard-float -S test.c
linux asm :
the constant string fetched like
addis 3,2,.LC0@toc@ha
addi 3,3,.LC0@toc@l
wher
Cced maintainer like David Edelsohn and Segher Boessenkool .
Any suggestions/comments for the below query ?
Thank you
~Umesh
On Thu, Oct 25, 2018 at 9:23 PM Umesh Kalappa wrote:
>
> Hi All,
>
> For the below code (test.c)
>
> int foo()
> {
> printf("Hello World");
> }
>
> On linux :
> ccpc -mcp
On Thu, Oct 25, 2018 at 11:53 AM Umesh Kalappa wrote:
>
> Hi All,
>
> For the below code (test.c)
>
> int foo()
> {
> printf("Hello World");
> }
>
> On linux :
> ccpc -mcpu=e6500 -mno-altivec -mabi=no-altivec -D_WRS_HARDWARE_FP
> -mabi=elfv2 -mcmodel=med -mhard-float -S test.c
>
> linux asm :
>
Hi Umesh,
On Fri, Oct 26, 2018 at 12:22:37PM +0530, Umesh Kalappa wrote:
> Cced maintainer like David Edelsohn and Segher Boessenkool .
I did see the mail, even started writing a reply, but I got lost in it.
> Any suggestions/comments for the below query ?
No, I have no idea what it means even.
Thank you David for the information.
>>Are you asking about semantics or syntax? Which source code do you
not want to change?
My bad was not clear in the first go and the questions was why on PE
format the relocation is R_PPC64_TOC16 is generated for global access
and on ELF why its R_PPC64_TOC16_
On Fri, Oct 26, 2018 at 10:27 AM Umesh Kalappa wrote:
>
> Thank you David for the information.
> >>Are you asking about semantics or syntax? Which source code do you
> not want to change?
> My bad was not clear in the first go and the questions was why on PE
> format the relocation is R_PPC64_TOC