Phung Nguyen <nhph...@gmail.com> writes:

> Is there any way to change the compilation of a declaration?
> char *s = "abc";
> compiled into
>        .section .rodata
> .LCO:
>        .ascii "abc\0";
>        .section .data
>        .align 1
> _s:
>        .long .LCO
> I would like to change the last line in the above generated code. What
> is the hook which can help us to do that?

You may be able to use TARGET_ASM_INTEGER.  But do you just want to
change the last line, or do you want to change the way that it is used?
If you just change that line, can you still load the address in a single
load instruction?

Ian

Reply via email to