how to initialize a pointer using data page mode
Ian Lance Taylor
iant@google.com
Tue Oct 19 04:43:00 GMT 2010
Phung Nguyen <nhphung@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
More information about the Gcc
mailing list