Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22040

Is it possible to avoid copying from another section in stack initialisation in gcc?

$
0
0

for example

void f(){   wchar_t s[]=L"aaaaaaaaa";}

is compiled into something like

.section .rdataLC0:.ascii "a\0a\0a\0a\0a\0a\0\0".section .textmovl LC0,%eaxmovl %eax,0x888(%esp)...

Is it possible to avoid the dependence on another section? Such as

movl $0x00610061,0x888(%esp);movl $0x00610061,0x88c(%esp);...


Viewing all articles
Browse latest Browse all 22040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>