This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How can I retrieve section-attribute infomation in RTL
- From: "liyongzhang" <liyongzhang at tcxa dot com dot cn>
- To: <gcc at gcc dot gnu dot org>
- Date: Wed, 21 Jul 2004 00:04:37 +0800
- Subject: How can I retrieve section-attribute infomation in RTL
Hi all,
I am not sure the question have been asked in the past, however I was unable
to find any response in the archives. Any help would be appreciated.
Basically I am trying to port gcc to a RISC cpu architecture. It have two
program segments and two data segments.
I want my gcc can group the target code or data into different segments by
announcing section-attribute for some functions and variables in source
file.
But because be ensavled to the cpu, I should generate some additional ASM
code for crossing-segment data reference or function call.
So my question is:
For a RTL "call" insn pattern, how can I retrieve section-attribute
infomation of the callee or caller functions.
Thanks!
Liyz.